Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.2.0
Description
KafkaProducer is thread safe and an instance can be reused for writing every batch out. According to Kafka docs, this sort of usage is encouraged. It has impact on performance too.
On an average an addBatch operation takes 25ms with this patch. It takes 250+ ms without this patch.
Results of benchmark results, posted on github PR.