Elaborazione 100% Lato Client • Zero Registri di Rete • Esecuzione Immediata
Curious TechieToolbox Sviluppatori
Data Formats & EncodingsRFC 9562 (supersedes RFC 4122)Verified Terminology

Identificatore Univoco Universale (UUID)

Risposta Diretta

Etichetta numerica standardizzata a 128 bit (RFC 9562) impiegata per identificare risorse in modo univoco in sistemi distribuiti senza coordinamento centrale.

Entity Relationships (GEO Conceptual Hierarchy)

Taxonomy Model
Relational Knowledge Graph Sequence
UUID→
GUID→
RFC 9562→
UUID v4→
UUID v7→
Indici B-Tree
UUID
•>GUID
•>RFC 9562
•>UUID v4
•>UUID v7
•>Indici B-Tree

Technical Explanation & Operational Mechanics

Assicura unicità globale nelle basi di dati distribuite. Si distingue tra UUID v4 (completamente casuale) e UUID v7 (ordinabile nel tempo tramite timestamp a 48 bit), progettato per ottimizzare le prestazioni degli indici B-tree.

Technical Example & Practical Implementation

Rappresentazione Canonica UUID v4 e UUID v7

Confronto tra identificatore casuale e identificatore ordinabile cronologicamente.

UUID v4 Structure (Random):
  f47ac10b-58cc-4372-a567-0e02b2c3d479
  ├── 122 bits of pure pseudorandom entropy
  └── Disadvantage: Random inserts cause database B-Tree page splits

UUID v7 Structure (Time-Ordered, RFC 9562):
  018e3a2b-7c40-7f28-892a-3511119b9901
  ├── 018e3a2b7c40  -> 48-bit Unix Epoch Timestamp (ms)
  ├── 7             -> Version 7 indicator
  ├── f28           -> Sub-millisecond sequence counter
  ├── 8             -> Variant 1 (RFC compliant)
  └── 92a3511119b9901 -> 62 bits of cryptographically secure random entropy
  └── Advantage: Naturally sorted primary keys with zero database write degradation