简体   繁体   English

Kinesis:获取未处理记录的列表

[英]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.

相关问题 Python AWS 库 Boto3:kinesis.get_records(shard_iterator) - Python AWS Library Boto3: kinesis.get_records(shard_iterator) 如何限制一次处理的 Kinesis Firehose 记录 - How to limit Kinesis Firehose records processed at once AWS Kinesis KCL 跳过启动前添加的记录 - AWS Kinesis KCL skips records added before startup 按事件时间对 Kinesis firehose S3 记录进行分区 - Partition Kinesis firehose S3 records by event time 如何对从 AWS Kinesis Firehose 到 Redshift 的记录进行重复数据删除? - How to do de-duplication on records from AWS Kinesis Firehose to Redshift? 从 Apache Hudi 表中删除记录,这是使用 AWS Glue Job 和 Kinesis 创建的 Glue 表的一部分 - Deleting records from Apache Hudi Table which is part of Glue Tables created using AWS Glue Job and Kinesis 使用 Python 解析和渲染 Kinesis Video Streams 并获取输入帧的图像表示 - Using Python to parse and render Kinesis Video Streams and get an image representation of the input frame Kinesis Stream 认证 - Kinesis Stream Authentication AWS Route 53 按创建日期列出记录 - AWS Route 53 list records by creation date DynamoDB 所有记录中唯一的元素列表 - DynamoDB Unique list of elements across all records
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM