-
-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d07c959
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've come across an issue with using
each_slice
. If I publish 93392 messages and I have code similar to below running:The last 392 messages don't get consumed, and it just listens until it reaches 1000 again. I don't have a constant stream of messages, they arrive in bursts, and I can't let messages sit until the next burst. I don't recommend using
each_slice
as a batching solution unless you have a constant stream of messages and can afford to let them get stale if there is a gap in message production.Also if you are trying to drain a topic to transition to a different topic/cluster it is impossible unless you publish an exact multiple of your slice size.