AlgoViz

Apache ZooKeeper

medium 30 min

ZooKeeper is a small, replicated, strictly ordered tree of notes that programs use to coordinate: who is the leader, who is alive, who holds a lock, what the settings are.

Where it shows up

The same pattern appears across everyday software.

  • Apache Kafka before 4.0

    Kept broker registration, controller election and topic metadata in ZooKeeper. Version 4.0, March 2025, removed it.

  • Apache HBase

    Its reference guide says HBase uses ZooKeeper to store metadata for operations, such as the address of the master.

  • Hadoop HDFS

    Automatic failover keeps a session per NameNode and a lock held with an ephemeral znode. When the active one's session expires, the standby is elected.

  • Apache Storm

    All coordination between Nimbus and the Supervisors goes through ZooKeeper, so the daemons can be killed and restarted.

  • SolrCloud

    The Solr guide asks for an external ensemble in production, with an odd number of servers.

  • Yahoo

    The 2010 paper describes use in the crawler's fetching service: master election, configuration and membership.

  • Apache Pulsar

    Uses a metadata store for coordination, where ZooKeeper is one of the supported choices beside Oxia.