News for hackers. Stuff that matters.
Re:Patterns of Distributed Systems by LennyWhiteJr on Tuesday June 27, 2023 @09:43PM (#36501243)
Even if are "down to several nano-seconds", a slight clock drift can be the different between corrupt data or not, and when running at scale, it's only a matter of time before you start running into race conditions.

For a small web app, fine, but if you're running enterprise level software processing billions of DB transactions per day, clocks just don't cut it.

Re:Patterns of Distributed Systems by withinboredom on Wednesday June 28, 2023 @01:43AM (#36502725)
That’s why you buy NICs with hardware timestamp support and enable PTP. You can detect clock drift within a few packets.

Race conditions are mitigated, not by clocks, but by other logics. The clock was just something done after frustrations in reading distributed logs and seeing them out of order. Logs are basically never out of order any more and there is sanity.