A Universally Unique Identifier (UUID) is a 128-bit number used to uniquely identify information in computer systems without relying on a central coordination authority. Also known as a Globally Unique Identifier (GUID) within Microsoft ecosystems, a UUID is designed to ensure that data generated across independent, distributed systems can coexist in the same database or network channels without any identifier collisions. Anatomy of a UUID
While a UUID is natively a 128-bit binary value, it is most commonly displayed to humans as a 36-character alphanumeric string split into five hexadecimal groups separated by hyphens.
The canonical layout follows an 8-4-4-4-12 character pattern:f81d4fae-7dec-11d0-a765-00a0c91e6bf6
First 3 groups (8-4-4): Typically generated using timestamps or specific data depending on the UUID version.
Fourth group (4): Contains the Variant and Version bits. The first character of this group explicitly indicates the version number (e.g., a 4 for UUIDv4).
Fifth group (12): Often represents spatial uniqueness, historically pulling from a machine’s MAC address or a random sequence.
Leave a Reply