[英]Kinesis: get list of unprocessed records
What's the best way to get a list of unprocessed records inside a stream?获取 stream 中未处理记录列表的最佳方法是什么?
Kinesis seems to offer a number of high level metrics ( GetRecords.Records, GetRecords.Success, IncomingRecords, PutRecords.FailedRecords, PutRecords.Records, PutRecords.Success, PutRecords.SuccessfulRecords, PutRecords.TotalRecords
) but Kinesis 似乎提供了许多高级指标( GetRecords.Records, GetRecords.Success, IncomingRecords, PutRecords.FailedRecords, PutRecords.Records, PutRecords.Success, PutRecords.SuccessfulRecords, PutRecords.TotalRecords
)但是
a)those have been hard to correlate with each other and a)那些很难相互关联并且
b)they don't point to specific records. b)他们不指向特定记录。
Any advice would help.任何建议都会有所帮助。
Well, Kinesis is a messaging queue which uses producer/consumer to write/read data.好吧,Kinesis 是一个消息队列,它使用生产者/消费者来写入/读取数据。 Most of the logic requires to be implemented using the Kinesis client.大多数逻辑需要使用 Kinesis 客户端来实现。
It is not so straight forward to capture the failed or unprocessed messages directly in kinesis stream.直接在 kinesis stream 中捕获失败或未处理的消息并不是那么直接。
One case can be - If you want to detect the failedRecords in Kinesis, you can configure your Kinesis Producer to capture the error_codes and the message which fails from put_records()
operation一种情况是 - 如果您想检测 Kinesis 中的失败记录,您可以配置 Kinesis 生产者以捕获 error_codes 和put_records()
操作失败的消息
Same applies to processRecords()
operation, you need to handle the exceptions gracefully.同样适用于processRecords()
操作,您需要优雅地处理异常。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.