[
https://issues.apache.org/jira/browse/CAMEL-12492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-12492:
--------------------------------
Issue Type: Improvement (was: Bug)
> Camel kafka producer is blocking and processing sequentially
> ------------------------------------------------------------
>
> Key: CAMEL-12492
> URL: https://issues.apache.org/jira/browse/CAMEL-12492
> Project: Camel
> Issue Type: Improvement
> Components: camel-kafka
> Affects Versions: 2.21.0
> Environment: Windows/Centos
> Reporter: Omri Tavor
> Priority: Major
>
> Camel Kafka producer (org.apache.camel.component.kafka.KafkaProducer) is
> blocking on the Kafka producer
> (org.apache.kafka.clients.producer.KafkaProducer) callback. This highly
> affects performance when there is a big latency between the client and the
> Kafka server. For example, if there is a latency of 100ms between the
> servers, then the Kafka producer will run at a throughput of 10 events per
> second (per Camel worker thread). This means that each worker thread will
> only handle one kafka event at a time resulting in very bad performance.
> Changing the 'Process()' method inĀ
> org.apache.camel.component.kafka.KafkaProducer to always return true (work
> synchronously) will boost performance on a machine with a latency of 150mb-
> from 6 events per second to 5000 events per second.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)