SystemKit

YouTube

Upload and playback are very different workloads. Work through resumable uploads, a transcoding pipeline, adaptive streaming, and CDN delivery, along with the costs that shape the design.

Lessons

  1. 01Set the video workloadSeparate publishing from watching, then size the expensive paths before choosing services.
  2. 02Accept an upload safelyLet the API authorize an upload while object storage receives the large bytes directly.
  3. 03Process video off the request pathUse a queued task graph so independent work runs in parallel and failed tasks can retry.
  4. 04Make one source fit many screensProduce compatible renditions and short segments so a player can adapt quality.
  5. 05Publish only a playable videoKeep queryable metadata separate from media bytes and make state changes explicit.
  6. 06Deliver segments near the viewerThe API answers who may watch; the CDN serves media; the player manages buffer and quality.
  7. 07Spend capacity where demand isMeasure popularity and egress before expanding every rendition and region.
  8. 08Plan for failure and removalDefine recovery, observability, and policy enforcement across upload, processing, and playback.

Practice this chapter

  1. TaskDesign a podcast publishing and listening platformApply the video pipeline to audio, where files are small, position saves far outnumber plays, and the biggest spike arrives on a published schedule.