in Technology by (1.9m points)

What do you mean by leader and follower in Kafka?

1 Answer

0 votes
by (1.9m points)

Candidates should prepare for such the latest Kafka interview questions that dig deeper into the architecture of Kafka. Each partition in Kafka is associated with one server that plays the role of Leader, and the other servers play the role of Followers.

A leader is responsible for performing all the read and write requests for the concerned partition. On the other hand, followers have to replicate the leader passively. If the Leader fails, then one of the Followers could assume the role of a Leader to ensure load balancing.