System Design · Unit 20
Blob storage & CDNs
Your app lets users upload profile photos, and the quick instinct is to store the image right in your database next to the user's row. It works with ten users. At scale, it quietly wrecks your database: big binary files bloat it, slow it down, and make it expensive to run and back up. Files and databases are a bad match.
The standard answer has two parts. Files (images, videos, documents, anything large and binary) go into object storage, a service built specifically to hold huge numbers of files cheaply. And to serve them fast to users everywhere, you put a CDN in front, which keeps copies close to users geographically.
This unit ties together pieces you already know (the request path, the CDN, the database) into the pattern every media-heavy system uses: metadata in the database, the file in blob storage, delivery via a CDN.
The rest of the System Design course is premium
The first two units are free, and this is where the gate sits. Unlocking premium opens this unit and everything else in both courses:
- ✓This unit: 5 prediction-first lessons, 3 applied drills, and a 5-question graded test
- ✓All 20 System Design units, caching to CAP & consistency
- ✓The full DSA course: every unit, guided problem, and drill
Cancel anytime. Not useful within 7 days? Email for a full refund.