Context◆Article
On a single computer, every event can be measured against one clock, so the order of the events is never in doubt. However, a distributed system, where work is spread across many independent machines, lacks a shared reference.
A single machine has one clock for ordering events, but distributed systems lack a shared reference, making ordering inherently problematic. ✦ AI generated
Author · ByteByteGo Newsletter · 2026-07-23 · original ↗
Elicited by
“Why does something as simple as reading the time become a hard problem for distributed systems?”
On a single computer, every event can be measured against one clock, so the order of the events is never in doubt. However, a distributed system, where work is spread across many independent machines, lacks a shared reference.
Read full article ↗excerpt · fair-use quotation
- ·Every event measured against one clock
- ·Event order is never in doubt
- ·Shared reference provides deterministic ordering
- ·Work spread across independent machines
- ·No shared reference for ordering
- ·Event ordering becomes inherently problematic
Around this claim
This moment responds to
explains mechanism → Each machine can read time from its own hardware clock, but those clocks do not stay aligned. Network Time Protocol (NTP) tries to bring the clocks together, but it cannot eliminate the problem.Author · ByteByteGo Newsletterexplains mechanism → If events on different machines are ordered by comparing timestamps, a small difference in the wrong direction can change the result.Author · ByteByteGo Newsletterexplains mechanism → An update that happened later can be discarded in favor of an earlier one, because clock differences gave the earlier write the larger timestamp, and the newer data disappears with no error raised.Author · ByteByteGo Newsletterexplains mechanism → Logs gathered from several machines can place an effect before its cause, which makes tracing a problem much harder.Author · ByteByteGo Newsletterexplains mechanism → An operation that depends on a correct order, such as granting access only after the change that authorized it, can act on stale information.Author · ByteByteGo Newsletter