Design a URL shortener (a coat check for web addresses, on one machine and then for the world)
The Slate, Properly · Open board
The cache drawn with the engineering on it: what a saved copy is worth, what makes it lie, and the failure that hits when one answer is wanted by everybody at once. A shortener’s read path is that picture.
Before you start. You need the six steps from Design the Whole Thing (the interview, assembled): ask, estimate, API, data, design, bottlenecks, with nothing on the whiteboard until a number pays for it. That lesson used “design a URL shortener” as its blank prompt, and this one takes the prompt all the way down. The Slate, Properly (caching to real depth) gave you the cache, a small fast copy of the answers people ask for most, and the hit rate that measures it. Splitting the ledger (sharding) gave you sharding, one database cut into pieces by a key, which only matters here once the numbers get large.
Lesson 66 of 115 in System Design
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.