Are you planning to close these at any point? I'm not seeung any close() calls.
On 17 Nov 2017 6:09 pm, "Ranjit Kumar" <[email protected]> wrote: Hi All, I am writing java program with thread pool may be 100 threads and all threads will have kafka producers (org.apache.kafka.clients.producer.ProducerRecord) for the same topic, will their be any problem ? thread-1 ProducerRecord<String, String> data = new ProducerRecord<>(topic, msg); // same topic stringProducer.send(data); thread-2 ProducerRecord<String, String> data = new ProducerRecord<>(topic, msg); // same topic stringProducer.send(data); thread-3 ProducerRecord<String, String> data = new ProducerRecord<>(topic, msg); // same topic stringProducer.send(data); Regards, Ranjit
