Design: a URL shortener, one machine

The core idea

A URL shortener stores a destination behind a compact link.

Creating a link writes that mapping; opening it returns a redirect so the browser can fetch the destination itself.

In this lesson

  • The product boundary
  • The application and its tables
  • The code space
  • A collision during creation
  • The redirect lookup
  • The click before the response
  • The measured limit
  • Before calling it ready

Continue reading

Pro unlocks video lessons, visual walkthroughs, full notes, diagrams, case studies, and implementations across the System Design archive.