Paths Subjects Questions Quizzes Pricing Search
System Design Intermediate Pro

Design a URL Shortener (bit.ly / TinyURL)

A model interview answer: requirements, estimation, key generation, redirects, caching and scale

25 min read 8 views

Walk through a complete URL shortener design the way a strong candidate answers it: requirements and estimates, base62 vs hashing vs a key-generation service, 301 vs 302 redirects, hot-URL caching, sharding, expiry, analytics and abuse controls.

Practice questions (5)

  • Estimating Traffic, Storage and Cache for a Shortener

    Intermediate · Free
    View →
  • Choosing a Key Generation Strategy

    Intermediate
    View →
  • 301 vs 302 and the Analytics Path

    Intermediate
    View →
  • Custom Aliases, Expiry and Key Reuse

    Intermediate
    View →
  • Scaling Reads and Fighting Abuse

    Advanced
    View →

We use cookies for product analytics to improve OmniAtlas. See our Privacy Policy.