I\'m using the new kafka producer client and set the timeout.ms property to 50 ms.
Here is the complete configuration used in the producer:
props.put(\"
In the new Kafka 2.0 Producer API, you can use one of the following properties : https://kafka.apache.org/documentation/#producerconfigs
See usage examples on https://kafka.apache.org/20/javadoc/index.html?org/apache/kafka/clients/producer/KafkaProducer.html
The timeout is now defined by the max.block.ms
property.