LeetDezine
Unique ID Generator
Initializing search
    • Home
    • Start Here
    • Concepts
    • Back of Envelope
    • Foundation
    • Ascent
    • Expedition
    • Summit
    • Battleground
    • Home
    • Start Here
    • Concepts
    • Back of Envelope
    • Foundation
      • Unique ID Generator
        • System Requirements
        • Deep Dives
        • Observability
        • Final Design
      • URL Shortener
    • Ascent
    • Expedition
    • Summit
    • Battleground
    1. Home
    2. Foundation
    3. Unique ID Generator
    01

    Foundation · Case Study 1

    Unique ID Generator

    Design a distributed ID generation service — globally unique, sortable, 10k IDs/sec. Covers UUID, Snowflake, ticket servers, and clock skew.

    System Requirements
    Problem statement, functional requirements, back-of-envelope estimation, NFRs, API design, and base architecture.
    System OverviewFREstimationNFRAPIBase Architecture
    Open →
    Deep Dives
    Counter approaches, UUID, ticket servers, pre-generated key pools, Snowflake bit layout, clock skew handling, and fault isolation.
    SnowflakeUUIDTicket ServerClock SkewFault Isolation
    Open →
    Observability
    SLIs and SLOs for an ID service, latency and availability measurement, alerting strategy, and error budgets.
    SLI / SLOAlertingError Budget
    Open →
    Final Design
    The complete architecture after all deep dives — every component justified, every tradeoff resolved.
    Final ArchitectureFull Diagram
    Open →