-
-
Notifications
You must be signed in to change notification settings - Fork 522
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
Consumer receives eachBatch over the maxBytes #1694
Comments
i am having the same issue in the eachBatch , consumer setup i have
but i am getting batches with number of message and total sizes Batch size: 1250, Byte size: 2156251 bytes |
Describe the bug
The consumer fetches messages over the maxBytes settings
To Reproduce
Consumer setup:
Producer setup:
Here are the messages what i want to send to the topic.
Each message is arround 1017 bytes.
Expected behavior:
The consumer should receive the batches under 2500 bytes, so at maximum 2 messages in each batch.
Producer1 setup:
In this case the consumer receives all the messages in once, so 10 messages in the batch.
Producer2 setup:
This solution sends the messages individually.
In this case happens exactly what I want, In every batch are only 2 messages.
What am I missing?
Is there a way to send the messages in one request, but receives the batches till the maxBytes batch size?
The text was updated successfully, but these errors were encountered: