What is the role of ZooKeeper is Kafka?
Answer
In Kafka, Zookeeper is a centralized controller that manages metadata for producers, brokers, and consumers. Zookeeper also:
Tracks which brokers are part of the Kafka cluster
Determines which broker is the leader of a given partition and topic
Performs leader elections
Manages cluster membership of brokers