System Design Problem

Design a Distributed Coordination Service (ZooKeeper)

Commonly Asked By:GoogleYahooTwitterMeta

  • Hierarchical Namespace: Data is organized in a file-system-like tree of nodes (called znodes).
  • Znode Types: Support Persistent, Ephemeral (deleted when client session ends), and Sequential (auto-incrementing suffix) znodes.
  • Watch Mechanism: Clients can set watches on znodes to receive push notifications when the znode changes or its children change.
  • Core API: create, delete, exists, getData, setData, getChildren.

ZooKeeper uses a replicated ensemble of servers (typically 3, 5, or 7). One server is elected the Leader, and the rest are Followers.

Loading...