merlimat opened a new pull request #9650:
URL: https://github.com/apache/pulsar/pull/9650
### Motivation
Allow to set the producer queue size to 0 and disable the limit, just
relying on the `ClientBuilder.memoryLimit()` setting to apply the backpressure.
This will greatly simplify the producer configuration tuning to achieve high
throughput on topics with many partitions.
### Modifications
* Set the producer semaphore as optional
* Changed the queue into a non concurrent `ArrayDeque`, since we're using
it always from within the producer
* Removed `pendingCallbacks` queue, which was there since forever but was
completely useless.
----------------------------------------------------------------
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]