100% 브라우저 메모리 연산 • 서버 로그 수집 제로 • 즉각적인 실행
Curious Techie개발자 툴박스
Data Formats & EncodingsRFC 9562 (supersedes RFC 4122)Verified Terminology

범용 고유 식별자 (UUID: Universally Unique Identifier)

핵심 요약 답변

분산 컴퓨팅 환경에서 중앙 조정 기관 없이도 객체와 리소스를 고유하게 식별할 수 있도록 정의된 표준 128비트 식별자(RFC 9562).

Entity Relationships (GEO Conceptual Hierarchy)

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

Technical Explanation & Operational Mechanics

UUID는 분산 시스템 전반에서 충돌 없는 식별자 생성을 보장합니다. 무작위 암호화 난수를 사용하는 UUID v4와 선두에 48비트 타임스탬프를 배치하여 DB B-tree 인덱스 성능을 극대화하는 최신 UUID v7이 널리 쓰입니다.

Technical Example & Practical Implementation

UUID v4와 UUID v7 표준 구조 비교

순수 무작위 식별자와 시간순 정렬이 가능한 타임스탬프 기반 식별자의 비교

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