Skip to main content

Time, Ordering, and Coordination

Physical clocks, logical clocks, causal ordering, and why "happened-before" matters more than wall time.

Figure: Event ordering across processes without a global clock.

What You'll Learn​

Clocks in distributed systems are unreliable witnesses. This domain teaches how to order events without trusting NTP, how Lamport and vector clocks capture causality, and when physical time (TrueTime, HLC) is worth the cost.

Chapters​

ChapterFocus
Physical and Logical TimeNTP, clock skew, TrueTime, hybrid logical clocks
Lamport ClocksLogical timestamps, happened-before relation
Vector ClocksDetecting concurrent events, causal ordering
Ordering of EventsTotal vs partial order, coordination implications

Learning Path​

  1. Physical and Logical Time — understand why wall clocks fail at scale.
  2. Lamport Clocks — the minimum ordering primitive every architect should know.
  3. Vector Clocks — detect concurrency for conflict resolution and CRDTs.
  4. Ordering of Events — connect clocks to system design decisions.

Interview Prep​

ResourceTopic
Google Spanner TrueTimeGlobal timestamps, commit-wait
Dropbox Sync ConflictsVersion vectors, conflict copies
LabVector clocks on :8097 — engineer guide

Prerequisites​

Production readiness + Game Day​

Every substantive chapter in this domain targets the Production LLD and Game Day Standard: whiteboard Production LLD (APIs, data, failure paths) and run Game Day drills (inject → detect → mitigate → verify → learn).

Start hereWhat you practice
Chapter §22A / §22BShip-ready LLD + drill catalog
Chapter §23 PRACTICEFull interview script
Curriculum Overview — Phase 7Rollout status

Next Domain​

Continue to Consistency Models and Consensus.

Return to the Curriculum Overview for the full learning path.