Building Data Streaming Applications with Apache Kafka
by Chanchal Singh, Manisha Sethi, Manish Kumar, Anshul Joshi
Role of Zookeeper
Kafka clusters cannot run without Zookeeper servers, which are tightly coupled with Kafka cluster installations. Therefore, you should first start this section by understanding the role of Zookeeper in Kafka clusters.
If we must define the role of Zookeeper in a few words, we can say that Zookeeper acts a Kafka cluster coordinator that manages cluster membership of brokers, producers, and consumers participating in message transfers via Kafka. It also helps in leader election for a Kafka topic. It is like a centralized service that manages cluster memberships, relevant configurations, and cluster registry services.
Zookeeper also keeps track of brokers that are alive and nodes that have joined or left the cluster. It can ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access