LeetDezine
URL Shortener
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
      • URL Shortener
        • System Requirements
        • Deep Dives
        • Observability
        • Final Design
    • Ascent
    • Expedition
    • Summit
    • Battleground
    1. Home
    2. Foundation
    3. URL Shortener
    02

    Foundation · Case Study 2

    URL Shortener

    Design bit.ly — takes a long URL, returns a short code, redirects at scale. 100M DAU, 1B redirects/day.

    System Requirements
    Functional requirements, back-of-envelope estimation, NFRs, API design, and base architecture.
    FREstimationNFRAPIBase Architecture
    Open →
    Deep Dives
    Short code generation, database sharding, caching strategy, peak traffic handling, pre-generated keys, cold storage, and fault isolation.
    Short Code GenShardingCachingPre-Gen KeysCold Storage
    Open →
    Observability
    SLIs and SLOs for a redirect service, latency P99 measurement, availability tracking, alerting, and error budgets.
    SLI / SLOAlertingError Budget
    Open →
    Final Design
    The complete architecture after all deep dives — every component justified, every tradeoff resolved, full system diagram.
    Final ArchitectureFull Diagram
    Open →