Key Technologies
ZooKeeper

ZooKeeper

The distributed coordination service that keeps your distributed systems in sync. ZooKeeper provides the primitives — leader election, locks, configuration, service discovery — so you don't have to build them (incorrectly) yourself.

The Coordination Problem

Why distributed coordination is fundamentally hard — two generals, unreliable networks, clock skew — and why you shouldn't build it yourself.

01 Track
Two GeneralsCAP TheoremCoordination PrimitivesCP System
Continue Track

Architecture & The Ensemble

Leader/follower ensemble, Zab protocol, quorum mechanics, and the write path through the cluster.

02 Track
EnsembleZab ProtocolQuorumLeader ElectionObservers
Get Started

ZNodes & The Data Model

Hierarchical namespace, persistent vs ephemeral vs sequential nodes, and the stat structure.

03 Track
ZNode TypesEphemeralSequentialStat Structure1MB Limit
View Model

Sessions & Watches

Client sessions, heartbeats, timeout negotiation, and the watch notification mechanism.

04 Track
SessionsHeartbeatsWatchesOne-Time TriggerPersistent Watches
Read Internals

Coordination Patterns

Leader election, distributed locks, service discovery, config management, barriers — the recipes that make ZooKeeper useful.

05 Track
Leader ElectionDistributed LockService DiscoveryBarriersQueues
View Patterns

Consistency Guarantees

Sequential consistency, atomicity, zxid ordering, what ZooKeeper promises and what it doesn't.

06 Track
Sequential ConsistencyzxidEpochssync()Linearizability
View Guarantees

Operations & Four Letter Words

Deployment configuration, monitoring, JVM tuning, failure scenarios, and the admin commands.

07 Track
zoo.cfgFour Letter WordsJVM TuningMulti-DCFailure Scenarios
Ops Guide

Security

ACLs, authentication schemes, TLS encryption, and network security best practices.

08 Track
ACLsSASLKerberosTLSDigest Auth
View Security

ZooKeeper vs Alternatives

etcd, Consul, Apache Curator — when to use each and how they compare in system design interviews.

09 Track
etcdConsulCuratorRaft vs ZabDecision Framework
Compare

Why ZooKeeper?

Every distributed system needs coordination — leader election, configuration management, service discovery, distributed locking. ZooKeeper provides these as battle-tested primitives used by Kafka, HBase, Hadoop, and Solr in production at massive scale.

  • Coordination primitives — leader election, locks, barriers, and service discovery out of the box.
  • Strong ordering guarantees — all updates are totally ordered with global transaction IDs (zxid).
  • Ephemeral nodes — automatically detect failures and clean up state when clients disconnect.
  • Watch mechanism — get notified of changes instantly without polling.
  • Battle-tested — powers Kafka's controller, HBase's master election, and Hadoop YARN at scale.