Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 04 · System Design · The parts, properly · about 17 min to read

Watch: CDN: how Netflix puts video inside your ISP
▶ VideoPlay it as a journeyTutor comes with a plan

The branch near your house (CDNs and object storage)

Open Connect CDN
Open Connect CDN · Open board

Netflix’s boxes sitting inside your internet provider’s building, filled at night and serving you by day. This lesson takes that picture and asks the plainer question behind it: when should any stall open branches, and what goes on their shelves?

Before you start. From The chai stall that got famous (load balancing) you need the famous stall that became many stalls, and from The slate next to the stove (caching) the slate: a small board of copied answers, whose hit rate is the share of asks it answers without a walk to the back. The Slate, Properly (caching to real depth) chalked a lifetime beside each line, the TTL (time to live): after that many seconds the line goes blank and the next ask fetches it fresh. One address, a thousand doors showed that one address can be answered from many cities, the nearest one answering. Object Storage and the CDN calls the one real copy of a file the origin, and it owns the mechanics this lesson only points at: cache keys, purging, signed links.

Lesson 21 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.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 8 June 2021: the branches close, and the web goes with them
  • The famous stall opens branches: a CDN
  • The first customer waits: pull-through
  • How long the branch trusts its copy: TTL as a design dial
  • The van at night: push, stocking ahead
  • The godown: object storage, where big things live
  • The customer drops their own parcel: a pre-signed URL
  • When the branch is the wrong answer

Terms it explains: hit rate, TTL, origin, CDN, pull-through, push, object storage, pre-signed URL.

Related paper

Review System Design