📄Universally Unique Identifier (UUID)
Also known as UUID, GUID, Globally Unique Identifier
A 128-bit ID any computer can make. Two almost never match.
Think of it like
Think of it like a name so long and odd that no one else has it.
Example
Lucy's notes app works offline on many phones. Each new note gets a UUID, so notes from every phone join up with no clash.
Why it matters
Many computers can make IDs at once without a clash. Nobody has to hand out the next number.
Definition
Example code
console
$ uuidgen
4149014e-eabb-4fab-a179-5177233cc0e5Common mistake
Key takeaways
- 1128 bits. Written as 32 hex digits.
- 2No central list. Every computer makes its own.
- 3Versions differ. Version 4 is random, version 7 starts with time.