LESSON 01 · Scope and demand

Set the video workload

Separate publishing from watching, then size the expensive paths before choosing services.

SYSTEM VIEW

The video path

Diagram view
Delivered—
Peak egress—
Originals—

Watch publishing and watching turn into bytes in and bytes out, then see which resource each path strains.

  1. Creators upload videos into Video storage, and Viewers play them from the CDN edge. Agree on source size, devices, reach and startup time first. Live video leaves little time for queues and retries, so it is close to a separate design.

    Agree on
    size, devices, reach
    Can wait
    comments, recommendations

    What changed

    • Publishing: Creators upload
    • Watching: Viewers play
  2. Size demand from behavior, not registered users. As an exercise, 8 million daily viewers each watch three 200 MB videos, so the CDN edge delivers about 4.8 PB a day.

    Viewers
    8 million a day
    Each watches
    3 videos × 200 MB

    What changed

    • 4.8 PB a day out of the edge
    • Sized from views, not sign-ups
  3. Spread evenly over a day, 4.8 PB is about 440 Gbit/s. At a threefold peak the CDN edge sends 1.3 Tbit/s. These illustrative inputs are not current YouTube measurements: state the peak-to-average ratio and recalculate when an assumption changes.

    Average
    about 440 Gbit/s
    Peak
    3 × average

    What changed

    • About 440 Gbit/s on average
    • 1.3 Tbit/s at a threefold peak
  4. If 2% of the 8 million upload one 400 MB source daily, Creators send 160,000 uploads and Video storage gains about 64 TB of originals a day, or 23 PB a year, before renditions, replication and retention.

    Uploads
    160,000 a day
    Each
    one 400 MB source
    A year
    about 23 PB

    What changed

    • 64 TB of originals a day, 23 PB a year
    • Before renditions, replication, retention
  5. Playback drives egress, the bytes the CDN edge sends to viewers. Transcoding, converting each source into playable formats, drives compute in the Transcoder. Uploads drive storage. The balance varies: Netflix encodes a curated catalog ahead of release, while YouTube absorbs a constant stream of uploads.

    What changed

    • Transcoder
    • Playback drives egress
    • Transcoding drives compute
    • Uploads drive storage
  6. 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, in place of Video storage, the Transcoder and the CDN edge, and spend its effort elsewhere.

    Library
    a few thousand videos
    Bought from
    a managed service

    What changed

    • Managed service such as Mux
    • Replaces Video storage, Transcoder, CDN edge
    • A few thousand videos skip the build

Space plays · ← → step · Home resets

THE IDEA

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.

DECISION POINT

A teammate says five million people use the service, so five million requests per day should size it. What is missing?

Write a sentence or two to unlock the guidance. Committing first is what makes it stick.

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.
CHECK YOUR UNDERSTANDING

Put it into practice.

1 OF 3
ApplyQUESTION 01

A niche app has 200,000 daily viewers, each watching three 100 MB videos. Roughly how much data does it deliver per day?

Choose an answer. You’ll see the explanation once you get it right.

Next lesson

0 of 3 checkpoints answered correctly to complete this lesson.