Why it matters
ZooKeeper is deployed everywhere. Understanding is essential for operating any Hadoop-adjacent system.
Advertisement
The architecture
Ensemble: 3 or 5 servers. Majority quorum required.
Namespace: znodes (hierarchical). Persistent or ephemeral.
Advertisement
How it works end to end
ZAB: total-order broadcast. Leader accepts writes; followers replicate.
Sessions: client-server with timeout. Ephemeral znodes tied to session.
Watches: one-shot notification on znode change.
Recipes: leader election, distributed lock, membership.