System Design Playbook
1M users

URL shortener for 1M users

Your shortener went public: ~40 new links/s and ~4,000 redirects/s, with viral spikes.

Requirements

  • ▸Redirects must stay under 50 ms during spikes
  • ▸Click analytics per day and country
  • ▸No downtime when a server fails
◱Client

Drag from the dot on the right of a box to another box to connect them. Select a box or arrow and press Delete to remove it. · Saved in this browser

One reasonable design, not the only one. Compare it with yours.

Read the full design →