producer
sends messages 1, 2, 3, 4
consumer
receives messages 1, 2, 3, 4
consumer
crashes/disconnects
producer
sends messages 5, 6, 7
consumer
comes back up and should receive messages starting from 5 instead of 7
For this kind of result, which offset
value I have to use and what are the other changes/configurations need to do
Producer
sending messages continuously... I checked the offset value before stopping theconsumer
, it was 8023. after 10mins I startedconsumer
then the first offset value is 8020. After some time again I stopped consumer at that time offset value is9239
after an hour I startedconsumer
then the first message offset value is9299
I am setting agroupId
andauto.offset.reset
islatest
I am also logging thepartition
value , it is0
only – Tysontyumen