So You Added Zookeeper to Your Stack, Now What?
summary
Zookeeper is a leader-based, fully replicated coordination service that favors strong consistency over sharding: run a 3–5 node ensemble (odd number) so the cluster tolerates a minority of failures, and expect roughly 50,000 ops/sec for read-dominant workloads because all state is kept in memory and flushed to disk. Use ephemeral nodes for liveness, sequential znodes for ordering, watches as one-time state-change signals, multi-op transactions (3.4), dynamic reconfig in 3.5 beta, and clients like Curator (Java) or Kazoo (Python); avoid storing >1MB per znode or using ZK as a message queue.
AI-written summary · about
chapters (10)
- 0:00Introduction and overview
- 1:04Evolution of distributed systems
- 8:02What is ZooKeeper?
- 13:21ZooKeeper guarantees and performance
- 21:04Cluster interactions and data structure
- 27:26Watches and API basics
- 33:48Common uses for ZooKeeper
- 41:12Client state machine complexity
- 43:41Best practices and operational concerns
- 45:26Q&A and closing
