我是卡夫卡的新手,试图了解是否有方法从上次消费的偏移量中读取消息,但不能从头开始。如何使卡夫卡消费者从上次消费的偏移量读取,但不是从开始
我在写一个案例,以便我的意图不会偏离。
Eg:
1) I produced 5 messages at 7:00 PM and console consumer consumed those.
2) I stopped consumer at 7:10 PM
3) I produced 10 message at 7:20 PM. No consumer had read those messages.
4) Now, i have started console consumer at 7:30 PM, without from-beginning.
5) Now, it Will read the messages produced after it has started. Not the earlier ones, which were produced at 7.20 PM
有没有办法从上一次消耗的偏移量中产生消息?
是的,如果我们给任何组ID,然后将数据从得到的最后消耗点读。如果我们在没有组ID的情况下运行,它仅在开始后才考虑数据。谢谢.. – Srini
是否也可以通过控制台使用者为特定使用者组提交偏移量? – clausmc