TrueTime and linearization
In order for a system to truly provide strong consistency guarantees, its operations must be linearizable, meaning all nodes can agree on the exact ordering of events. This becomes extremely challenging in distributed systems, as the nodes must ensure their internal clocks are synchronized to a very small margin of error. To solve this, Google Cloud datacenters are equipped with specialized atomic clocks that are regularly synchronized with each other using GPS. These clocks are used to implement TrueTime, which allows Cloud Spanner nodes to determine the current time down to a very fine resolution.
Even with specialized hardware, system time will never be truly exact. TrueTime brings the margin of error down to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access