-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Safely consuming batch of messages #39
Comments
The You can achieve what you want by using a |
Ok. Then, should I instanciate a Broker by myself to emit this OffsetCommitRequest, or can I get one from the Consumer object ? |
You should get the broker by calling |
Thx eapache. |
@eapache How can I reread the same batch again |
Hi,
I'm new to kafka so I might miss something; but here's what I want and think I cannot achieve with the Consumer type.
I'd like to be able to fetch 100 messages, process them, and only then notify Zookeeper that it can move my consumer group offset. This would allow my process to fail in the middle of a batch processing safely: so that the next time I start it, I can start processing the same batch again.
Is this possible with the current state of the library ?
The text was updated successfully, but these errors were encountered: