Oops, My UUIDs Collided
alexsci.com·10h·
Discuss: Hacker News
Flag this post

Blog Home


This post is part of a collection on UUIDs.

Universally Unique Identifiers (UUIDs) are handy tool for a distributed systems architect. The provide a method by which a distributed system can generate IDs without meaningful risk of duplicates. These tools are very widely used and do their job quite well.

This post describes instances where UUID generation fails to provide uniqueness, known as a UUID collision. This mystical event is mathematically so unlikely that you can often dismiss it in a hand-wave, yet collisions occur.

This post provides specific real-world examples of collisions and explains what went wrong.

Real world collisions

uuidjs and Math.random()

When using UUI…

Similar Posts

Loading similar posts...