merlimat opened a new pull request #8331:
URL: https://github.com/apache/pulsar/pull/8331
### Motivation
C++ client can end up using a huge amount of memory under certain
conditions:
* Batching enabled
* Number of messages per batch high
* Several partitions
### Modifications
We need to use messages rather than batches for the sizing of the pending
messages queue and back-pressure. Same as how it happens in Java and Go client
implementations. Otherwise, the batching size becomes a multiplier of these
settings.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]