How it works
Start with two jobs: a creator uploads a video and a viewer plays it on a phone, browser, or TV. Agree on maximum source size, supported devices, geographic reach, startup time, availability, and whether live streaming is in scope. Live video leaves little time for queues, batching, and retries, so it is close to a separate design. Comments, recommendations, and subscriptions can wait; each adds a different system.
Use behavior rather than registered users to estimate demand. As an exercise, eight million daily viewers watching three 200 MB videos imply about 4.8 PB delivered per day, about 440 Gbit/s on average and 1.3 Tbit/s at a threefold peak. If 2% upload one 400 MB source daily, originals alone add about 64 TB per day, or 23 PB a year, before renditions (encoded copies at other qualities), replication, and retention. These illustrative inputs are not current YouTube measurements. State peak-to-average ratios and recalculate when an assumption changes.
Each path stresses a different resource. Playback drives network egress, the bytes sent out to viewers. Transcoding, converting a source into playable formats, drives compute. Uploads drive storage. The balance varies by product: Netflix encodes a curated catalog ahead of release, while YouTube absorbs a constant stream of user uploads.
Not every video feature needs this pipeline. A company training library with a few thousand videos can buy it from a managed service such as Mux and spend its effort elsewhere.
A teammate says five million people use the service, so five million requests per day should size it. What is missing?
Ask how many are active, how many videos they watch and upload, video sizes and lengths, peak patterns, device mix, and retention. One viewing session requests many media segments.
Use this as a guide for self review; written answers are not graded.Keep in mind
- Size watch traffic, upload bytes, derived renditions, and peaks separately.
- Treat every figure as an assumption to validate, not a precise production forecast.