Sending the message size greater then 5 MB from producer throwing error in pulsar #22492
-
While sending the massages greater then 5 MB from producer and enabling the batching
We are trying one use-case where we have payload size which is greater than the maxMessageSize parameter at the Broker config i.e. Max 5mb. When we are enabling the Batching at Producer side and trying to send the message, we are getting an error which is the "Message size is bigger than 5242880 bytes". So, we wanted to know that the result of this case is working as expected or it should be worked somewhat w.r.t Batching fields that we will be providing like for. eg batchingMaxBytes which(We are assuming should batch the message in the size that we are specifying). Please let us know if our thinking is correct or not and what should be the expected outcome? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Note: I'm pretty new to Pulsar myself, so this is just from my basic understanding. That error makes sense to me. Batching's purpose seems to be to be for increasing throughput gains - instead of making multiple TCP calls to the broker, use 1 network call with a batch of messages. It amortizes the network costs. I think you might be looking for chunking instead. But note that chunking cannot be enabled when batching is on. |
Beta Was this translation helpful? Give feedback.
Note: I'm pretty new to Pulsar myself, so this is just from my basic understanding.
That error makes sense to me. Batching's purpose seems to be to be for increasing throughput gains - instead of making multiple TCP calls to the broker, use 1 network call with a batch of messages. It amortizes the network costs.
I think you might be looking for chunking instead. But note that chunking cannot be enabled when batching is on.