Skip to content
StackDecode
System Design
6. Distributed Systems FundamentalsAnimated

Distributed Coordination

Getting nodes to agree and act together.

The idea

Services like ZooKeeper and etcd provide locks, leader election and configuration through consensus.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

Service AService BCoordination se…Service C
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

A small, strongly consistent cluster stores configuration, locks and membership.

step:
1/4
at:
Coordination service (ZooKeeper / etcd)
1/8

The green dot is a request moving through the system.

Step by step

  1. 1Nodes connect to the coordinator
  2. 2They register or lock
  3. 3The coordinator replicates state with consensus
  4. 4Nodes watch for changes

Where it is used

Leader election and configuration.

Watch out for

The coordinator itself must be highly available.

Related