Atomic Time (TAI) vs UTC in Distributed Databases
When two database nodes on separate continents commit transactions milliseconds apart, trusting standard system clocks can order writes backward and corrupt financial balances. Distributed databases solve this by combining monotonic clocks like TAI with bounded uncertainty windows.
TAI vs UTC: Why Distributed Systems Prefer Continuous Seconds
International Atomic Time (TAI) ticks at a strict, unbroken physical rate measured by hundreds of atomic clocks worldwide. It has never added or removed a leap second. By contrast, UTC stepped backward for leap seconds 27 times between 1972 and 2016, leaving UTC 37 seconds behind TAI. (As noted in our leap second guide, the October 2026 CGPM vote relaxes future UTC adjustments starting May 2027.)
TrueTime and Hybrid Logical Clocks (HLC)
Multi-region databases use two proven patterns to order global writes cleanly:
- Google Spanner TrueTime: Uses GPS receivers and atomic clocks in every data center to report a time interval
[earliest, latest]instead of a single timestamp, waiting out the tiny uncertainty window before committing transactions. - Hybrid Logical Clocks (HLC): Used by databases like CockroachDB, HLC combines physical NTP time with a logical counter so timestamps always increase monotonically even if a physical server clock stalls briefly.