pulsar-rs icon indicating copy to clipboard operation
pulsar-rs copied to clipboard

Limit producer batch messages by size in bytes as well

Open AfonsoRibeiro opened this issue 2 years ago • 2 comments

To prevent the producer from sending batches that are bigger than allowed by the pulsar server, a limit in bytes should be possible to configure. Or at least a soft threshold that when reached sends the batch (much easier to implement and it appears it is also done in the go client).

AfonsoRibeiro avatar Mar 26 '23 17:03 AfonsoRibeiro

This is partially resolved by https://github.com/streamnative/pulsar-rs/pull/269.

Keep open for a while since there are still several potential improvements can be made. See https://github.com/streamnative/pulsar-rs/pull/269#pullrequestreview-1382771811.

tisonkun avatar Apr 16 '23 07:04 tisonkun

i want to try this issue

fatelei avatar Apr 16 '23 14:04 fatelei