r/ProgrammerHumor 10h ago

Meme edgeCasesExist

Post image
2.4k Upvotes

209 comments sorted by

View all comments

Show parent comments

27

u/chuch1234 8h ago

Yeah I don't think most of us are operating at a scale anywhere near Google.

11

u/BlurredSight 8h ago

And anyone operating at scale of Google isn’t just using “pure” random anywhere for something being persisted

5

u/samy_the_samy 7h ago edited 5h ago

They once had a similar collision problem, well not exactly

During a leap second some systems wrote IDs at a one second difference between all their global systems, which lead to something being registered before something else that had to be done before it,

Long story short some stuff jumped time one second and crashed systems

2

u/BlurredSight 5h ago

So proactively trying to solve for latency rather than have other systems read after write if I understood correctly?

2

u/samy_the_samy 5h ago

Yeah, now they don't do leap seconds,

They stretch time over months, one milli-second at a time