I'm using camel-kafka version 2.14.3
.
Below is the kafka URI :
<from uri="kafka:{brokerlist}?topic={topic-name}&zookeeperHost={zookeeperHost}&zookeeperPort={zookeeperPort}&groupId={groupId-name}&consumerStreams=2" />
note that I have used consumerStream=2
in URI options. But when I publish multiple messages to the topic topic-name
at once (all to the same partition), the kafka consumer receives those messages sequentially. How can receives those messages parallely?
I'm looking for a solution like below :
<from uri="ibm_bean_name:queue_name?concurrentConsumers=2" />
is what I use to read concurrently from an ibm MQ