NEW
A centralized service for distributed coordination, maintaining configuration, naming, synchronization, and group services.
DESCRIPTION
Apache ZooKeeper provides primitives for building reliable distributed systems. It stores small configuration and coordination data in a replicated, consistent hierarchy. Common patterns include leader election, locks, and service discovery using ephemeral and sequential znodes. Many systems such as Kafka and HBase use ZooKeeper for coordination and metadata. Modern alternatives like etcd and embedded controllers reduce direct ZooKeeper use in some stacks.
ALTERNATIVE DEFINITIONS
Apache ZooKeeper
ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.
Canonical description highlighting core coordination capabilities.
Wikipedia
Apache ZooKeeper is a service for coordinating processes of distributed applications.
Summarizes ZooKeeper as a distributed coordination service.
RELATED TERMS
Distributed Systems Leader Election Configuration Management Coordination Service Apache Kafka Apache HBase Consistency Consensus
COMPETING TERMS
RELATIONS
- Broader: Distributed Systems
KNOWLEDGE AREAS
Infrastructure Platform & Tooling Cloud Software Engineering
TARGET AUDIENCE
DevOps Engineer Cloud Architect Software Developer Data Engineer Solution Architect IT Manager
EXTERNAL SOURCES
- Wikipedia - Apache ZooKeeper
- Apache ZooKeeper - Official ZooKeeper documentation
- Apache Kafka - Kafka’s use of ZooKeeper
- etcd - Alternative coordination system docs
TOP QUESTIONS
What problems does Apache ZooKeeper solve?
It provides reliable primitives for coordination, such as leader election, locks, and configuration storage, enabling robust distributed systems.
Category: Value
How does ZooKeeper ensure consistency?
ZooKeeper uses a replicated, ordered log with a consensus protocol to keep nodes in sync, exposing linearizable operations.
Category: Architecture
What are znodes in ZooKeeper?
Znodes are data nodes in ZooKeeper’s hierarchical namespace, which can be persistent, ephemeral, and optionally sequential.
Category: Concepts
How is leader election implemented with ZooKeeper?
Clients create sequential znodes and watch the predecessor, letting the smallest sequence become leader upon predecessor deletion.
Category: HowTo
What are common ZooKeeper pitfalls?
Storing large data, high write loads, or poor session timeout tuning can cause instability and thrashing.
Category: Mistakes
Is ZooKeeper still required for Kafka?
Newer Kafka versions offer KRaft mode without ZooKeeper, but many clusters still run with ZooKeeper-backed metadata.
Category: Relevancy
How do you secure ZooKeeper?
Enable TLS, SASL/Kerberos or mTLS auth, use ACLs, and isolate the cluster network.
Category: Security
How should ZooKeeper be sized?
Use an odd number of servers (typically 3–5), SSDs, ample memory, and low-latency networks for quorum consistency.
Category: BestPractices
What are alternatives to ZooKeeper?
Etcd and Consul provide similar coordination primitives and are popular in cloud-native stacks.
Category: Alternatives