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
| Chapter | Focus |
|---|---|
| Physical and Logical Time | NTP, clock skew, TrueTime, hybrid logical clocks |
| Lamport Clocks | Logical timestamps, happened-before relation |
| Vector Clocks | Detecting concurrent events, causal ordering |
| Ordering of Events | Total vs partial order, coordination implications |
Learning Path
- Physical and Logical Time — understand why wall clocks fail at scale.
- Lamport Clocks — the minimum ordering primitive every architect should know.
- Vector Clocks — detect concurrency for conflict resolution and CRDTs.
- Ordering of Events — connect clocks to system design decisions.
Interview Prep
| Resource | Topic |
|---|---|
| Google Spanner TrueTime | Global timestamps, commit-wait |
| Dropbox Sync Conflicts | Version vectors, conflict copies |
| Lab | Vector 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 here | What you practice |
|---|---|
| Chapter §22A / §22B | Ship-ready LLD + drill catalog |
| Chapter §23 PRACTICE | Full interview script |
| Curriculum Overview — Phase 7 | Rollout status |
Next Domain
Continue to Consistency Models and Consensus.
Return to the Curriculum Overview for the full learning path.