What limitations apply to a Consumer Group in Kafka?
Asked at
AI answer
The main limitation is that, within a single consumer group, a partition is read by no more than one active consumer at a time. Therefore, the number of consumers reading partitions concurrently cannot exceed the number of partitions in the subscribed topics; any additional consumers will remain idle. A single consumer can read multiple partitions.
Also:
- message ordering is guaranteed only within a single partition, not across partitions;
- changes to the group membership or the number of partitions can trigger a rebalance and a temporary pause in processing;
- the same record can be read independently by different groups, but within a group it is distributed among consumers.
When subscribing to multiple topics, the distribution depends on the overall set of partitions and the selected assignor.
Also asked at RWB
- Why did you decide to change jobs / leave your current company?
- What is the key difference between TCP and UDP?
- What is the difference between git merge and git rebase? When should each approach be used?
- What is an inode in Linux?
- Which command is used to determine the route of a packet from your device to the target host?
Similar questions
- Can two consumers in the same consumer group read from the same Kafka partition? Why?
- A topic has five partitions and ten consumers in one group. How will they read the topic?
- Can one producer write to multiple Kafka partitions, and can one consumer read from multiple partitions?
- What determines the number of partitions when creating a Kafka topic?
- A Kafka topic contains 5 billion messages that this consumer group does not need to read. How can they be skipped?