liveBook · Manning

Universally unique identifier

As explained in Kubernetes for Developers

A UUID is a 128-bit identifier designed to be generated with a very low probability of collision across clients and systems.

A universally unique identifier (UUID) is a 128-bit identifier commonly displayed as hexadecimal text. Any client, including code on a user’s device, can generate one with a very low probability of collision. section 6.4.1

UUIDs help avoid the scaling limits of incrementing primary keys. Because clients can generate identifiers independently, multiple writable database instances can create records without relying on one central sequence or insert lock. section 6.4.1

Example identifier

A UUID may look like 8fe05a6e-e65d-11ea-b0da-00155d51dc33. Use this approach when independently generated identifiers matter more than sequential, sortable values. section 6.4.1

How Kubernetes for Developers covers it

How deep it goes
Defines the identifier and explains its scaling rationale, but stops short of generation algorithms or implementation details.
Examples
Uses the identifier 8fe05a6e-e65d-11ea-b0da-00155d51dc33 as a concrete hexadecimal example.
What you can do after
Apply UUIDs when independently generated identifiers support scaling better than centralized incrementing keys.
How it connects
Contrasts UUIDs with incrementing primary keys and connects them to horizontal scaling and writable database instances.

Also explained in

Compare how 10 books explain universally unique identifier →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Kubernetes for Developers. The section links point to the parts of the book it draws on.