zeromsi
zeromsi

Reputation: 101

Kafka offsets and consumer group issue

My Kafka partition got 20 offsets. I have a consumer group of 5 consumer subscribed. My Question is, is it possible to ensure that first 5 offsets will be read by consumer 1, after successful read next 5 offsets will be read by consumer 2 and so on..? If not possible then is there any open source tool/technology available to do so?

Upvotes: 1

Views: 56

Answers (1)

Nishu Tayal
Nishu Tayal

Reputation: 20830

Two consumers belonging to the same consumer group can't read from the same partition. If there is only one partition, one consumer will consume all 20 offsets, and remaining consumers will be idle until a new partition is added.

Upvotes: 2

Related Questions