A UUID (Universally Unique Identifier), also known as a GUID (Globally Unique Identifier), is a 128-bit number used to identify information in computer systems. The term universally unique means that the probability of generating the same UUID twice is virtually zero, even without a central coordination authority.
There are several versions of UUIDs, but the most common are Version 1 and Version 4:
Developers use UUIDs for database primary keys, session IDs, transaction tracking, and identifying temporary files. Because they don't require a central server to ensure uniqueness, they are perfect for distributed systems and microservices.