You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ApiModelProperty(
name = "batchingMaxPublishDelayMicros",
value = "Batching time period of sending messages."
)
privatelongbatchingMaxPublishDelayMicros = TimeUnit.MILLISECONDS.toMicros(1);
Without such an option, if we set the batch_size to 1000 in pulsar-rs, and there are only 500 messages to be sent, then no messages will be sent to the Pulsar broker side at all:
In Java client, there is a
batchingMaxPublishDelay
option, which is 1 millisecond by default:https://github.com/apache/pulsar/blob/02147454c425b92f0cd1caefa73b9339db6a0269/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerBuilderImpl.java#L245
And:
Without such an option, if we set the
batch_size
to 1000 in pulsar-rs, and there are only 500 messages to be sent, then no messages will be sent to the Pulsar broker side at all:It looks like there is a buffer in the backend, and only when the buffer is full(size == batch_size), the pulsar-rs will do the actual sending work.?
I think the batch sending needs to be triggered when one of the below conditions is met:
the buffer is full
a given timeout, such as 1 millisecond
The text was updated successfully, but these errors were encountered: