YouTube / Netflix Streaming

What would you ask before drawing a single box?

Ambiguity you would resolve with the interviewer: scope, scale, who uses it, what counts as done.

About YouTube / Netflix Streaming

ABR, CDN, transcoding, hot/cold — the egress, fan-out, and popularity Pareto.

Difficulty
advanced
Time
about 60 minutes
Stages
10
Topic
Object Storage, File Sync & Media Delivery

How this problem is worked

Ten stages, from the questions you would ask an interviewer to the trade-offs you would defend. Each asks one question, and the simulator runs the architecture you draw against the requirements you wrote.

  1. 01ClarificationsWhat would you ask before drawing a single box?
  2. 02Functional reqsWhat must this system actually do?
  3. 03Non-functionalWhat must it promise about speed, uptime and correctness?
  4. 04Capacity estimationHow much load and data does this have to hold?
  5. 05API designWhat does the outside world call, and what comes back?
  6. 06Data modelWhat gets stored, and what is it looked up by?
  7. 07Use-case breakdownHow does each requirement actually get served?
  8. 08High-level designWhich components handle a request, and in what order?
  9. 09Deep divesWhich part breaks first, and what do you do about it?
  10. 10Trade-offsWhat did this design cost, and what breaks at 10×?

Primary sources for this problem

  • Netflix Tech Blog — Per-Title Encode Optimization (2015)
  • Netflix Tech Blog — Optimized Shot-Based Encodes (2018)
  • Netflix Tech Blog — Rebuilding Video Pipeline with Microservices (Cosmos, 2023)
  • Netflix Tech Blog — Serving 100 Gbps from a single Open Connect Appliance
  • Netflix Open Connect — Overview whitepaper + Fill Patterns docs
  • Google / YouTube — Reimagining YouTube Video Infrastructure (Argos VCU, 2021)
  • Apple — Enabling Low-Latency HLS
  • Hotstar Engineering — How we scaled to 25M concurrent for IPL
  • AWS — CloudFront Origin Shield in Multi-CDN Deployments
  • BBA paper — Stanford SIGCOMM 2014 (Buffer-Based ABR)
  • Pensieve — MIT SIGCOMM 2017 (RL-based ABR)

Browse the full problem catalog, or see what the simulator does and does not model.