Case study demo
Video streaming
Follow a video from upload through transcoding to adaptive streaming from a CDN.
An interactive demo of how this system behaves. It runs in your browser.
Full interview walkthroughVideo streaming (YouTube / Netflix)Concept it usesCDNs and edge cachingConcept it usesIndexes and storage enginesConcept it usesContainers, orchestration and autoscaling
Design it
New videos fast, and no stalls for viewers
Viewers watch the newest videos, one 1-second segment at a time. At 5 s, six people upload a video at once, and workers turn each upload into 360p, 720p and 1080p. Pick the workers, their order, a CDN and adaptive quality, then check the design.
The goals
- Each of the six new videos can be watched within 3 s of its upload.
- With 60 viewers, video stalls for at most 1% of watch time.
- On a 3 Mbps link, video stalls for at most 1% of watch time.
Transcoding workers
Work order
CDN edges in front of the store
Adaptive quality
The check runs the same engine as the demo on this page for 30 simulated seconds under each condition, with a fixed seed, so a design always gets the same result. There is no score: each goal passes or fails.