The ConsumerRebalanceListener lets you handle partition assignments and revocations during rebalances. This is critical for managing offsets, stateful processing, or external transactions.
From Kafka Consumer Rebalance Docs:
“Implementing ConsumerRebalanceListener allows your application to take action before and after partitions are reassigned.”
A is true: It lets your app react when partitions assigned to the consumer change.
B, C, and D are unrelated to consumer rebalancing directly.
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit