talira

Apache ZooKeeper

The standard for distributed coordination

open sourceApache-2.0self-hostablefree

Apache ZooKeeper is a distributed coordination service that distributed applications build on for configuration, naming, synchronization and group membership instead of implementing those primitives themselves. Data lives in memory in a replicated hierarchical namespace of znodes, like a small file system, with ephemeral nodes that vanish when a client's session ends, conditional updates and watches that notify clients of changes. A replicated ensemble of servers keeps ordered, consistent updates as long as a majority is up. Applications use it for leader election, locks, group membership and shared configuration. It runs on the JVM, has Java and C bindings and the zkCli shell.

Problems it solves

  • elect a leader among several instances of a distributed service
  • distributed locks that work across machines
  • store shared configuration that every node in a cluster sees consistently
  • know which nodes in a cluster are alive and get notified when one leaves
  • service discovery for a cluster of JVM services

Features

  • hierarchical znode namespace
  • ephemeral and sequential nodes
  • watches
  • conditional updates
  • replicated ensemble with ordered, consistent updates
  • Java and C bindings
  • zkCli command-line shell

Capabilities

Has an APIplan not known
Has a command line toolplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what Apache ZooKeeper does.

  1. etcd A distributed, reliable key-value store for the most critical data of a distributed system
  2. Consul Service networking automations across clouds

Compare Apache ZooKeeper with the top 3