Caffeinated Coder
Book an appointment
Lesson 51 · Engineering practice

System design

Design a URL shortener from end to end. Start with the two API calls and a back-of-the-envelope estimate (about 1,160 writes and 11,600 reads a second, 3.65 TB a year), choose a one-table data model and a base 62 code, then follow real requests through a load balancer, app servers, a cache, a primary database with read replicas and a CDN, and weigh the bottlenecks and trade-offs.

14 min11 steps5 questionsAdvanced
Fig 51 · Interactive
Loading figure…
or ← →

Quiz Unlocks after the last step.