b-goyal commented on PR #7:
URL: https://github.com/apache/kafka/pull/7#issuecomment-1997289604

   I'm working on an application that needs the throughput offered by an async 
producer but also needs to handle send failures gracefully like a sync 
producer.  I modified the ProducerSendThread so it will re-queue failed 
batches.  This allowed me to determine the behavior I wanted from my producer 
with the queue config parameters.
   
   A "queue.enqueue.timeout.ms=0" allowed me to get runtime exceptions when 
sends failed often enough to fill the queue.  This also allowed me to use 
"queue.buffering.max.messages" to control how tolerant the application is to 
network blips.
   


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to