Skip to main content
09. Whole Systems/Lesson 2 of 4
14 minIntermediate12 steps

Design a URL Shortener

A first end-to-end design: from a one-line brief to a system that serves billions of redirects.

  • Redirect time—
  • Store lookups—
  • Short codes—
  • Links kept—
sho.rtto be designedpeople clicking linksREQUIREMENTScreate long URL → short codeopen short code → redirectredirects: fast, always upcreating a link may be slower
  • request
  • response
  • cache miss
  • write / click event
  • abuse
  • × failed request