SS Sachin Singh On Software Engineering Radio - the podcast for professional software developers

“It doesn't all collapse at one time, but things break at different points. GPS breaks at nanoseconds. At microsecond level, trading applications break. Distributed systems and databases, if you're off by a few milliseconds, they can start breaking because the database will not be able to determine which transaction occurred first. At seconds, two-factor codes. At minutes, OAuth breaks and your JWT tokens will not be valid. If you're off by hours, your TLS handshake can break.”

Software Engineering Radio - the podcast for professional software developers · Hands-On Engineering Podcasts · December 2026

“It doesn't all collapse at one time, but things break at different points. GPS breaks at nanoseconds. At microsecond level, trading applications break. Distributed systems and databases, if you're off by a few milliseconds, they can start breaking because the database will not be able to determine which transaction occurred first. At seconds, two-factor codes. At minutes, OAuth breaks and your JWT tokens will not be valid. If you're off by hours, your TLS handshake can break.” — Sachin Singh, Software Engineering Radio - the podcast for professional software developers

Context

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.

Transcript

Software Engineering Radio - the podcast for professional software developers Around 09:49 into the episode
Sachin Singh

…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.

Jason Davey

…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?

Sachin Singh

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…

Jason Davey

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?

Sachin Singh

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…

Jason Davey

I see. Can you get a little bit more into detail about how that manifested in Cloudflare?

Speaker names come from our own diarization. The position is estimated from where the line sits in the episode.

More from Software Engineering Radio - the podcast for professional software developers