Design a video sharing service akin to YouTube, enabling users to both upload and watch videos, and perform searches to discover content.
Suggested time: 45 minutes
Loading the workspace...
Video streaming is defined by one extraordinary asymmetry, for every video uploaded, it gets watched roughly 1,000 times. This 1000:1 view-to-upload ratio shapes every architecture decision. Upload is rare, expensive, and compute-intensive. Playback is frequent, must be fast, and bandwidth-intensive. The system must handle both extremes simultaneously, with fundamentally different optimization strategies for each path.
The building blocks this design relies on, each explained in its own lesson.
Design Facebook’s Newsfeed (hard)
Design a Live Comment System (medium)
Design a Podcast Hosting Platform (medium)
Designing a Simple URL Shortening Service: A TinyURL Approach (easy)
Company guides that list this problem among their sample questions.