I am relatively new to Kafka. I have worked a bit with this, but some things are unclear to me regarding the consumer bias. From what I understood when the consumer starts, the offset that he will begin to read is determined by the auto.offset.reset configuration auto.offset.reset (correct me if I am wrong).
Now say, for example, that there are 10 messages in this thread (offsets from 0 to 9), and the consumer had to consume 5 of them before he fell (or before I killed the consumer). Then say I'm restarting this consumer process. My questions:
If auto.offset.reset set to smallest , does it always start to consume at offset 0?
If auto.offset.reset set to largest , will it start to consume at offset 5?
Is behavior against such a scenario always deterministic? Please feel free to comment if anything in my question is unclear. Thanks in advance.
java distributed-computing apache-kafka
Asif Iqbal 04 Sep '15 at 4:46 2015-09-04 04:46
source share