Consume from different partitions in parallel #275
-
Hi.
Consumer:
Topic with 5 partitions, each has messages. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @sfiodorov, the Confluent driver that controls how the messages will be read from the topic/partition. In a development environment, some strange behaviors can happen, like yours. In a production environment, the "things" happen differently, you have many producers, many application instances, more partitions, and messages begin produced in different partitions at the same time. I think this problem will not happen. Putting the consumer with two workers, KafkaFlow will process two messages at the same time, even if the topic has just one partition. |
Beta Was this translation helpful? Give feedback.
-
@filipeesch thanks for the clarification about the original issue. You are correct this is by the design of librdkafka. But not sure i understand about the workers you mentioned. |
Beta Was this translation helpful? Give feedback.
-
Now its clear. Thanks. |
Beta Was this translation helpful? Give feedback.
Hi @sfiodorov, the Confluent driver that controls how the messages will be read from the topic/partition. In a development environment, some strange behaviors can happen, like yours. In a production environment, the "things" happen differently, you have many producers, many application instances, more partitions, and messages begin produced in different partitions at the same time. I think this problem will not happen. Putting the consumer with two workers, KafkaFlow will process two messages at the same time, even if the topic has just one partition.