What is the difference between Leader and Follower in Kafka?

devquora
devquora

Posted On: Apr 16, 2022

 

Each partition in Kafka has one server that plays the role of a leader, while there can be none or more servers that act as followers.
Leader performs the task of all read and write request, while the followers passively replicate the role of a leader. To ensure load balancing, one of the followers takes up the role of a leader in case of Leader failing.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Apache Kafka Interview Questions

    Please Explain Apache Kafka?

    It is a publish-subscribe messaging application and an open source message broker project started by Apache software. K..

    Apache Kafka Interview Questions

    In which language Apache Kafka is written?

    Kafka was written in Java and Scala programming languages...

    Apache Kafka Interview Questions

    What is Kafka message?

    Kafka messages can simply be defined as byte arrays that are used by developers to store objects in the format of String..