-
Notifications
You must be signed in to change notification settings - Fork 627
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
HighLevelConsumer.pause() does not work #337
Comments
Each bulk load is fetching more than 50 messages, so |
I understand the behaviour. But code above - should work. It have to fixed. |
Pause and Resume are a dicey way to control concurrency. Make sure your not pausing and resuming during a rebalance! |
And what is the best approach to control concurrency? Obviously my writer is slower then reader. What should I do in context of kafka? And how can I control rebalance? |
Rebalance occurs with a high level consumer, whenever any consumer starts. Set the message size to control how many messages. consumer.on('rebalancing', function () { |
Pauses only stops after the first fetch request. so if you have a a bunch of messages at the broker when the client first connects....... you'll exceed your limit. you can throttle the first request by message size....... |
So I see 50 messages in console and process exits by termination statement
The text was updated successfully, but these errors were encountered: