You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/10/21 18:31:04 UTC

[GitHub] [pulsar] merlimat opened a new pull request #8331: [C++] Client back-pressure is done on batches rather than number of messages

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:
users@infra.apache.org



[GitHub] [pulsar] merlimat merged pull request #8331: [C++] Client back-pressure is done on batches rather than number of messages

Posted by GitBox <gi...@apache.org>.
merlimat merged pull request #8331:
URL: https://github.com/apache/pulsar/pull/8331


   


----------------------------------------------------------------
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:
users@infra.apache.org