Lesson 14 of 16
40. Design Video Upload and Streaming (YouTube)

Variations to practise

3 min read+10 XP

Chapters used

Approach (1), Estimation (2), Blob storage (11), Caching and hot keys (13), Message queues (22), APIs (24), CDNs and video segments (26), Failures (29), Leaderboards and audited counts (35).

Try these variations

Each is a common follow-up. Answer in two minutes, then check the sketch.

  1. "Short vertical videos (like Reels)." → Smaller files, aggressive prefetching of the next few videos, and lower start-up latency targets.
  2. "Paid movies with DRM." → Encrypt segments; licence servers issue keys to authorised players; the CDN still caches the encrypted segments.
  3. "Let creators replace a video." → New video ID or a new version of the renditions with new URLs; old cached segments simply expire.
  4. "Cut costs by half." → AV1/VP9 for popular videos (smaller files, less egress), fewer qualities for rarely watched ones, cold storage for old originals.