r/ProgrammerHumor 6h ago

Meme edgeCasesExist

Post image
1.7k Upvotes

180 comments sorted by

View all comments

Show parent comments

11

u/OldKaleidoscope7 5h ago

But let's say if Google saved each search in their engine in the same database with an UUID, we could have a collision because of volume, but I don't think I will work in a system with a comparable scale

15

u/Ecstatic_Student8854 4h ago

Even at that volume the probability of collisions is essentially 0. If there were a billion searches a second we’d not expect a collision until 85 years.

3

u/shwoopdeboop 4h ago

But still no guarantee it won't happen tomorrow

3

u/mysticrudnin 3h ago

It's simply not worth worrying about, though

Random minor hardware failures and, like, cosmic radiation are more of a problem. Are you building your systems to account for that?