KatInterview

Design a Globally Scalable Video-on-Demand Platform

System DesignModel answer
MediumModel answerSystem Designsystem-designcdnvideo-streaming

Last updated

Architect an architecture for video ingestion, parallel adaptive-bitrate transcoding, and low-latency global delivery serving millions of concurrent streams.

Architect an end-to-end Video-on-Demand (VOD) platform capable of ingesting raw high-definition video from content partners and delivering low-latency playback to millions of concurrent viewers globally across diverse device types and network conditions.

System Requirements

Functional Requirements

  1. Content Ingestion & Processing: Content partners must be able to upload raw master video files (mezzanines). The platform must automatically transcode, package, and publish these videos.
  2. Catalog & Discovery: Viewers can browse and search the media catalog, view video details, and retrieve playback sessions.
  3. Adaptive Playback: Viewers must experience smooth video playback that dynamically adapts to changing client bandwidth and device capabilities without manual re-buffering.

Non-Functional Requirements

  1. Massive Scale & Throughput: Support up to 10 million concurrent active playback sessions during peak hours.
  2. Low Playback Latency: Achieve a Time-To-First-Frame (TTFF) of under 2 seconds at p90 globally.
  3. High Availability: Target 99.99% uptime for the playback control plane and content delivery paths.
  4. Resource Efficiency: Optimize storage footprint and bandwidth spending without compromising perceived video quality.

Scope of Discussion

  • System scale estimation and bandwidth math.
  • End-to-end architectural separation between write/ingest and read/playback paths.
  • Asynchronous video transcoding and packaging pipeline design.
  • Multi-tier CDN delivery and caching strategies.
  • Data models for catalog management, video manifests, and user watch progress.