apache / apache/pulsar-client-cpp
[feature request] Support consumer client memory limit
- Dominant language
- C++
- Stars
- 71
- Forks
- 90
- Avg merge
- 2h 33m
- Merged PRs (30d)
- 3
Description
### 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.
### Anything else?
Contributor guide
Research direction
Start with the client memory-limit configuration in include/pulsar/ClientConfiguration.h, then read the referenced Pulsar PIP and pull-request discussion for the proposed approach. Trace how consumer memory is managed and define done as having the client configuration consistently control consumer memory usage, with tests covering the limit.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- distributed-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100