pulsar-client-cpp
pulsar-client-cpp copied to clipboard
[feature request] Support consumer client memory limit
Motivation
The current CPP client supports memory limits by the client.
https://github.com/apache/pulsar-client-cpp/blob/872f8abaade7ecd346d3f59e2f6b3901c65ef7de/include/pulsar/ClientConfiguration.h#L36-L42
But this configuration does not limit the consumer's memory usage, We need to support consumer memory control first and use this parameter control uniformly.
Alternatives
Refer to PIP: https://github.com/apache/pulsar/pull/15216 Refer to comment: https://github.com/apache/pulsar/pull/16903#pullrequestreview-1058047687
After this, we can control the memory limit through the client config.