codelipenghui commented on issue #12510:
URL: https://github.com/apache/pulsar/issues/12510#issuecomment-962466338


   @Aaronzk There is an internal pending queue with 1000 messages by default 
for a producer. if the server-side with a slow response but the application 
send messages very fast that will fill up the pending queue, so by default, you 
will get the above exception, it's a fail-fast strategy. 
   
   Another available strategy is to block the caller thread if the pending 
queue filled up, you can add `.blockIfQueueFull(true)` when creating the 
producer. 


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to