Cianplan

Level 3: Distributed systems · L3.1 Time, clocks, consensus & leader election

Logical clocks

Order events with Lamport and vector clocks.

12 min · Pro

What you take away

  • Happens-before is the only ordering a distributed system can actually establish: same process, or send before receive, plus transitivity.

And 3 more inside the class, in Pro.

How the class is laid out

  1. The problem
  2. The simple version
  3. Lamport clocks, and what they cannot do
  4. Vector clocks make concurrency visible
  5. Hybrid logical clocks, in practice
  6. Check your understanding