Backend system design · about 45 minutes
Video streaming service
Design a service where creators upload videos and viewers watch them on phones, laptops and TVs. A video must start in about two seconds and continue without stops when the network of the viewer changes. Uploads are few and large, views are many, and the viewers are in all parts of the world.
Ask first
- How many uploads and how many views a day? How long is a video, and how large is a raw file?
- Which devices and network speeds must work? Which qualities do we offer, from 240p to 4K?
- Is it video on demand only, or also live streams?
- How soon after the upload must a video be ready to watch?
- Are there private or paid videos, so that access to the segments needs a check?
The outline
Write your own outline for each part first.
The strong answer, the pitfalls and the follow-ups opens with a year in the app. What a year includes