Hi! I have a question about executing a Kafka producer application, utilizing multiple threads. In the documentation for Kafka producers ( https://kafka.apache.org/23/javadoc/index.html?org/apache/kafka/clients/producer/KafkaProducer.html) it says that "...sharing a single producer instance across threads will generally be faster than having multiple instances.".
I am mainly wondering if there is any data to verify this claim? The reason for this is that I have carried out rather extensive performance tests, with varying levels of computational load per message produced, using between 1 and 24 threads, and it seems that there is really no situation in which a single, shared producer achieves a higher performance than if each executing thread is assigned its own producer instance. Kind regards, Arvid