Hello,

I am developing a service so that all clustered nodes form a consumer
group. I also need to run some logic on only one of the node. Can I use a
special single-partition topic for leader election? That is, in my node I
can use ConsumerRebalanceListener to make sure that if the "leader"
TopicPartition is being assigned to this node, then it is now the leader,
otherwise, it is not a leader.

Thanks,
Yi

Reply via email to