What is a UUID?
A UUID (Universally Unique Identifier), also known as a GUID (Globally Unique Identifier), is a 128-bit label standardized by RFC 4122. UUIDs are formatted as 32 hexadecimal characters separated by hyphens into five groups: 8-4-4-4-12, for example: 550e8400-e29b-41d4-a716-446655440000.
The primary purpose of a UUID is to enable distributed systems to generate unique identifiers without a central coordinating authority. Unlike sequential database integers, UUIDs can be generated independently on any machine at any time with an astronomically small probability of collision.
UUIDs appear in almost every modern software system: database primary keys, API request IDs, session tokens, file names, transaction identifiers, and distributed tracing correlation IDs. The "Global" in GUID (Microsoft's terminology) emphasizes that the identifier is unique across all time and space.