Assume that Kafka cleans up our partitions after 1000 events. I want to set specific offset by using seek function in Consumer. Will I need to set the start offset at 1000 or 0 in seek method, if Kafka cleans up partition after 1000 messages?
Asked
Active
Viewed 300 times
1 Answers
3
No, The offset for a message never changes. It is the permanent identifier for a position in the log. The new message after the cleanup will have offset 1000.

aballaci
- 1,043
- 8
- 19