litmus

Open this on a laptop

The canvas needs room: requirements on one side, live feedback on the other. Any screen 1024px or wider works.

Design Netflix

medium

Members browse their own home screen and stream any title smoothly, on any screen, at prime time.

Browse all problems

The problem

Build a streaming service like Netflix. Members browse a catalogue and stream any title on any screen.

Members never upload: each title arrives from the studio already encoded, and is watched millions of times. Pressing play is one small request; watching sends gigabytes.

A title that won't start, or keeps stopping to load, is the one thing that can't happen.

What it must do

  • Play. Check the member may watch, then hand the player a link to the nearest healthy CDN server that has the title: the steering step. The video never passes through your servers.
  • Stream. Each title is cut into chunks and encoded in several formats. The player picks the chunks that suit its screen and connection, and switches as the speed changes.
  • Browse. Each member's home screen is a set of rows built ahead of time. If building them fails, a fallback list of popular titles is shown.

What you'll learn

  1. Start with the simplest design that works
  2. Keep running when a server dies
  3. Bring the video to the viewer's own network
  4. Build each person's screen before they ask
  5. Keep a copy of the database ready to take over