Installing and configuring Apache Kafka
Also available as:

Kafka Producer Settings

If performance is important and you have not yet upgraded to the new Kafka producer (client version 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:


For more information, see the KafkaProducer javadoc.

The following subsections describe several types of configuration settings that influence the performance of Kafka producers.