Skip to content

1.3. Time and Ordering

There is no global “now” in a distributed system. Each node has its own clock, drifting independently, and the network delivers messages with variable delay — so “which event happened first” often has no physically meaningful answer. This chapter builds the machinery that replaces wall-clock intuition: the happened-before relation that defines causality, logical and vector clocks that capture it without physical time, hybrid clocks that bound the gap, and the extreme engineering (Google’s TrueTime) required to make physical time trustworthy at all.