Replies: 2 comments 4 replies
-
Hi @Shalima, would you mind sharing a sample of your producer and consumer code? That will likely be an efficient way to help answer your question. Thanks. |
Beta Was this translation helpful? Give feedback.
-
There are a few details here. First, message batching is an internal pulsar optimization that is transparent to the producer and consumer, so it isn't technically something that a user should have to verify. That being said, if you are not getting the throughput that you would like to see, it's always possible that the message batching could be tuned. The primary settings are set when building the producer using the Based on the code you shared, batching is enabled but is not being leveraged because synchronous sends trigger flushes. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am trying to experiment with batching parameters in Producer configuration locally. Since batching is enabled by default, I tried to set maxMessages to 3. I have a consumer listening to the topic. I am using send in for loop from Producer. I tried to send 5 messages and all 5 messages were consumed same time. How do I confirm the messages are batched ? This might be more of an amateur question and I am new to Pulsar. Any help will be appreciated. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions