[ https://issues.apache.org/jira/browse/KAFKA-6633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16392763#comment-16392763 ]
Mickael Maison commented on KAFKA-6633: --------------------------------------- Yes it is still the case. And it's also still in the javadoc ! See [http://kafka.apache.org/10/javadoc/index.html?org/apache/kafka/clients/producer/KafkaProducer.html] or [https://github.com/apache/kafka/blob/1.0.1/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java#L85-L86|https://github.com/apache/kafka/blob/1.0.1/clients/src/main/java/org/apache/kafka/clients/producer/KafkaProducer.java#L85-L86] It's right at the top: {code:java} The producer is thread safe and sharing a single producer instance across threads will generally be faster than having multiple instances. {code} > Is KafkaProducer still thread safe in version 1.0.1 > --------------------------------------------------- > > Key: KAFKA-6633 > URL: https://issues.apache.org/jira/browse/KAFKA-6633 > Project: Kafka > Issue Type: Bug > Components: clients > Affects Versions: 1.0.1 > Reporter: Herbert Koelman > Priority: Minor > > The javadoc of versionĀ > [0.8|https://kafka.apache.org/082/javadoc/org/apache/kafka/clients/producer/KafkaProducer.html] > states that producers are thread safe: > {quote}{{The producer is _thread safe_ and should generally be shared among > all threads for best performance.}} > {quote} > Is it still the case in version 1.0.1 ? I failed to find this information in > the javadoc of version 1.0.1. > Can I share one producer with many threads ? > (I posted this question as a bug, because I didn't know where else I could > post questions. Sorry) -- This message was sent by Atlassian JIRA (v7.6.3#76005)