[英]How to consume records from Kinesis Data Streams using KCL
I am trying to consume Kinesis data streams using Kinesis Client Library similar to https://github.com/aws-samples/amazon-kinesis-learning .我正在尝试使用类似于https://github.com/aws-samples/amazon-kinesis-learning的 Kinesis 客户端库来使用 Kinesis 数据流。 But in this example they scheduled the process.
但在这个例子中,他们安排了这个过程。 I want to consume records afferent without scheduler.
我想在没有调度程序的情况下使用传入的记录。
I don't want to use DynamoDB, cloudWatch.我不想使用 DynamoDB、cloudWatch。 Expecting a simple consumer to consume records in stream
期望一个简单的消费者消费 stream 中的记录
Is there any way to process records without scheduler using java有没有办法使用 java 来处理没有调度程序的记录
KCL uses DynamoDB to manage shard leases and checkpoints - this functionality/dependency is critical to what KCL provides. KCL 使用 DynamoDB 管理分片租约和检查点——这种功能/依赖性对于 KCL 提供的功能至关重要。 If you do not want these, I'm not sure why you want to use KCL in the first place.
如果您不想要这些,我不确定您为什么要首先使用 KCL。 You can either use Lambda to consume your stream, or invoke the APIs directly - there is some sample code here - https://docs.amazonaws.cn/en_us/streams/latest/dev/developing-consumers-with-sdk.html
You can either use Lambda to consume your stream, or invoke the APIs directly - there is some sample code here - https://docs.amazonaws.cn/en_us/streams/latest/dev/developing-consumers-with-sdk.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.