Kafka Producer Settings
If performance is important and you have not yet upgraded to the new Kafka producer (client version 0.9.0.1 or later), consider doing so. The new producer is generally faster and more fully featured than the previous client.
To use the new producer client, add the associated maven dependency on the client jar; for example:
<dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka-clients</artifactId> <version>0.9.0.0</version> </dependency>
For more information, see the KafkaProducer javadoc.
The following subsections describe several types of configuration settings that influence the performance of Kafka producers.