Google News
logo
Kafka - Interview Questions
What do you understand by the terms leader and follower in the Kafka environment?
The terms leader and follower are used in the Apache Kafka environment to maintain the overall system and ensure the load balancing on the servers. Following is a list of some important features of leader and follower in Kafka :
 
* For every partition in the Kafka environment, one server plays the role of leader, and the remaining servers act as followers.

* The leader level is responsible for executing the all data read and write commands, and the rest of the followers have to replicate the process.

* Suppose any time any fault occurs and the leader is not able to function appropriately. In that case, one of the followers takes the place and responsibility of the leaders and makes the system stable and helps in the server's load balancing.
Advertisement