StreamVault is building a subscription-based video streaming platform. Think Netflix: a massive library of movies and TV shows, personalized recommendations, and smooth playback worldwide. Key components:
- Video ingestion pipeline - content partners upload raw video files (up to 100 GB each). The system must transcode each video into 10+ resolution/bitrate variants (360p to 4K), generate thumbnails, extract subtitles, and store everything durably.•Adaptive streaming - the player dynamically switches between quality levels based on the user's bandwidth (HLS / DASH).•Content delivery - serve video segments from edge servers close to the user. Buffer ratio target: < 0.5% (fewer than 1 in 200 play-minutes should experience buffering).•Recommendation engine - personalized "For You" row powered by viewing history, ratings, and collaborative filtering.•Concurrent viewers - handle massive spikes when a popular show drops (e.g., 10 million concurrent streams for a hit series premiere).
This is one of the most infrastructure-intensive system design problems, combining massive storage, heavy compute (transcoding), global distribution, and real-time streaming.
Design a Netflix-like video streaming platform serving 100 M users worldwide. Build this architecture under realistic production constraints, then validate tradeoffs in the design lab simulation.
Request path: The solution keeps ingress, service logic, and stateful dependencies separated so each layer can scale independently.
Reference flow: Web Clients -> DNS -> CDN Edge -> Load Balancer -> API Gateway -> Core Service -> Primary SQL DB -> Redis Cache