Google Spans Planet with GPS-Powered Database (2012)
wired.com
wired.com
You can replace the word TrueTime, with "Magic" and learn exactly as much.
https://static.googleusercontent.com/media/research.google.c...
With accurate enough clocks you can establish a global event order simply by time stamping events with the actual time. If you want to process events at really high frequency, you need a correspondingly accurate synchronization between the clocks. The idea is decades old, I guess it is more of an engineering challenge. With the number of systems Google operates at least a few things will break all the time and you have to be able to tolerate that. But I think I just skimmed the paper when it came out and might therefore be unaware of some important details.
The point is, it's time based, and it enables synchronization of clocks across the globe to sub-microsecond accuracy. Google uses that feature for keeping its distributed databases synchronized as well. It's not just an alternative to NTP, it's a way to keep systems in sync to a very, very precise degree. Which requires constant communication with time reference servers. They don't put a GPS receiver in every server, just a redundant cluster of them in each data center.
Consider a transactional write using Spanner, the way it works is that the system connects to all of the relevant database shards, it knows what all of their clock accuracy levels are and so it knows how long it needs to wait to negotiate a transaction lock. This is only possible due to the high accuracy of time synchronization. Meanwhile it's buffering write data/instructions to all the hosts. Once it gets the lock it then sends out commit instructions. The whole process can take mere tens of milliseconds for a handful of hosts and only a few hundreds of milliseconds for hundreds of hosts. Which is remarkable when you consider the scale of the problem.
Ok that’s what I figured. The way the media reported on this the use of GPS as a time source was the special big deal. And I was trying to work out why because there was nothing novel in putting GPS time sources in data centers. (We did that at my first job not quite 2 decades ago...)