Skip to content
StackDecode
System Design
20. System Design Case StudiesAnimated

Video Streaming Platform (YouTube)

Upload, transcode and stream video globally.

The idea

Videos are transcoded into several qualities and served in segments through a CDN.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

UploaderTranscoder work…Segment storageCDNViewerMetadata DB
  • client
  • gateway / proxy
  • service
  • cache
  • data store
  • queue / stream

The upload is split and transcoded into many resolutions and chunks.

step:
1/4
at:
Uploader
1/9

The green dot is a request moving through the system.

Step by step

  1. 1Upload the video
  2. 2Transcode into several bitrates
  3. 3Store segments
  4. 4Stream adaptively from a CDN

Where it is used

Large media delivery.

Watch out for

Transcoding cost and CDN egress.

Related