ScrapCodes commented on issue #25853: [SPARK-21869][SS] Apply Apache Commons 
Pool to Kafka producer
URL: https://github.com/apache/spark/pull/25853#issuecomment-534524316
 
 
   My question is, at any point in time, do we need more than one instance of 
kafka producer on the executor? Since Kafka Producer instance is shared across 
threads, there is actually one instance being used by all the executor threads. 
And if we are only using one instance of the Kafka Producer, then why do we 
need connection pooling? 
   
   I am definitely not suggesting that Kafka Producer be created per task, in a 
micro batch. But, do we need object pooling here? 

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to