The ConsumerRebalanceListener lets youhandle partition assignments and revocationsduring rebalances. This is critical for managingoffsets,stateful processing, orexternal transactions.
FromKafka 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 partitionsassigned 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