Scale LineLesson
A CDN for the files everyone wants
Put copies of popular files on edge servers near users — the origin sees only the misses, the views arrive sooner, and the cache rules decide what may be shared and for how long.
12 minMediumStation: CDN (content delivery network)Members lesson
Membership isn’t open yet. The free lessons are open — 16 of them, including the whole first leg of the Scale Line.
- Users
- Storage
What you'll be able to do
- 1Predict the load on the origin for a given CDN hit ratio.
- 2Explain why answering from an edge near the user cuts latency.
- 3Choose what goes behind a CDN and how long it may be cached (TTL, versioned file names).
Inside the lesson
- steps
- 9
- questions
- 10
- simulations
- 2
You guess first, then run the system and see if you were right.
Step 1 · The setup
A celebrity shares a Pixel photo: 900 views a second, from people all over the map. Pixel's photo viewer fetches every one of them from the bucket.
Watch the bucket's request count.
Steps 2–9 are for members
More on the Scale Line
- Latency & percentilesOpen8 min
- Server capacity & scaling upFree with an account10 min
- Split app and database tiersFree with an account10 min
- Load balancerFree with an account10 min
- Horizontal scaling with a stateless tierFree with an account10 min
- Cache-asideFree with an account10 min
- Object storage for user filesMembers10 min
- Read replicas for a read-heavy appMembers11 min