Q&A
Ask and answer questions to make information more available to wider audiences.
Layne Chamberlain @chamberlainlayne   11, Jul 2023 12:00 AM
ZooKeeper in Kafka
What is ZooKeeper in Kafka? Can we use Kafka without ZooKeeper?
answers 1
 
Answer 1
Vanessa Lucas @lucasvanessa8   13, Jul 2023 05:20 PM
ZooKeeper is an open-source system which helps in managing the cluster environment of Kafka. As we know that Kafka brokers work in a cluster environment where several servers process the incoming messages before broadcasting to subscribed consumers. It is an integral part of Kafka architecture. One can not use Kafka without ZooKeeper. The client servicing becomes unavailable once ZooKeeper is down. It facilitates communication between different nodes of the cluster. In a cluster environment, only one node works as a leader while others are followers system only. It is a ZooKeeper responsibility to choose a leader in a cluster node. Whenever any server added or removed in a cluster, topic added or removed, ZooKeeper sends that information to each node. This helps in better coordination between different nodes. Choosing leadership node, better synchronization between different nodes, configuration management are the key roles of ZooKeeper.