Cards/Distributed SystemsSystem Design · Day 2Aug 2, 2026

Clocks That Count, Not Tick

Clocks That Count, Not Tick — system design card, day 2, distributed systems

Two servers hold two versions of your cart. Which one is newer?

Timestamps lie. Server clocks drift by milliseconds — sometimes seconds. Trusting them means silently deleting real data.

So distributed systems stopped asking when and started asking what came before what.

Each replica keeps a counter. Every write bumps its own and carries the whole set along.

Compare two versions:

→ every number bigger or equal? One truly came after the other.

→ some bigger, some smaller? Neither did. That's a genuine conflict.

The machine can now say "I don't know" — honestly.

Wisdom isn't knowing which answer wins. It's knowing when there isn't one yet.