Software Engineering Radio - the podcast for professional software developers · Hands-On Engineering Podcasts · December 2026
Asked how much clock drift different applications can tolerate, Sachin Singh, who worked on AWS's internal time service, walks up the scale from nanoseconds to hours, showing what breaks at each level.
…time. If you do not synchronize it with the Earth's rotation, it is possible that your noon might be at, in again, hundreds of years, your noon would be at like 3 p.m. So you don't want that. So that is another mechanism that we try to keep the Earth's time with the atomic clock time synchronized.
…timekeeping is necessary. So I'm thinking of things like logging, scheduling, maybe distributed systems which depend on time synchronization for correctness or consistency. Can you give us some examples of those and perhaps how much drift or desync in time is tolerable for different use cases?
Yeah. So most of the applications that we use today require a certain level of accuracy in time, like almost everything from say your certificates in your authentication process to the GPS that we talked about to a high-frequency trader who is doing many transactions a day. There are regulatory checks around a certain level of time accuracy that the exchanges are required to maintain for the transactions to go through well. Databases are a good example of they require pretty, depending on the kind of database, they require really good quality time and they want it to be consistent. You should never go back in time. Your two-factor authentication codes that most of us use today also are time sensitive, like most of them expire in 15 or 30 seconds. So if you talk about how much time drift before an application breaks, it varies by the application. So for example, GPS breaks at nanoseconds, right? It is one of the most accurate ones that's available. And the US government and the military and they all do a good job of keeping the time. So that's why we have a functional GPS and otherwise your Google Maps would not work. Then at microsecond level, the trading applications break and you might also violate a bunch of regulatory compliance for different countries…
Seems like in many cases, what actually matters is the ordering of events rather than the exact time at which they happened. And does that mean that it's a bad idea to use a timestamp as a way to determine if A or B happened first?
So let us take an example of database, right? If the time is off by, let us say, half a second, right? If a time is off by half a second, and if your database is persisting hundred or thousands of records within a second, which is entirely possible for some high frequency applications, it is…
I see. Can you get a little bit more into detail about how that manifested in Cloudflare?