System Design Problem

Design a URL Shortener (TinyURL / Bit.ly)

Commonly Asked By:GoogleMetaAmazonMicrosoftTwitterUber

  • Given a long URL, generate a unique, short URL (e.g., https://short.ly/xK9b2)
  • Given a short URL, redirect the user to the original long URL (HTTP 301/302)
  • Users can optionally provide a custom alias for their short URL
  • Short URLs have a configurable expiration (default: 5 years)
  • Analytics: track total clicks, geographic data, referrer, device info
  • Users can delete their own short URLs
  • Duplicate long URLs by the same user return the existing short URL
Loading...