Reputation: 921
I have started learning kafka. I don't have much idea of live project where kafka is used. Wanted to know if offset can be saved in database apart from committing in broker? I think it should always be saved otherwise some record will be missed or re-processed. Taking an example if offset is not saved in database, when application(consumer) is deployed or restarted during that time if some message is sent to broker at that time, that will be missed as when consumer will be up it will read next onward record or(from start)
Upvotes: 2
Views: 2831
Reputation: 24192
the short answer to your question is "its complicated" :-)
the long answer to your question is something like:
Upvotes: 6