LESSON 03 · Bytes over time

Budget storage and transfer separately

A stored byte and a delivered byte create different costs and bottlenecks.

SYSTEM VIEW

The calculation

Diagram view
Swipe or scroll to explore the full diagram
Separate stored bytes from delivered bytesUpload count and item size drive stored data. View count and bytes per view drive delivery. Replicas, renditions, and backups add physical storage.Separate stored bytes from delivered bytes200k uploads/daynew stored items× 4 MBaverage item size800 GB/daylogical storage≈ 292 TB/yearbefore extra copiesViews/dayrepeated reads× bytes/viewdelivered sizeTransfer/daydelivery capacityA file can be stored once and delivered to many viewers.
Upload count and item size drive stored data. View count and bytes per view drive delivery. Replicas, renditions, and backups add physical storage.
Follow the units from assumptions to a capacity decision.
THE IDEA

How it works

Estimate logical storage, the data before any extra copies, as new items per day × average stored bytes × retention days. If 200,000 images arrive daily at an average of 4 MB, that is about 800 GB of new image data each day and about 292 TB over a year using decimal units. Physical storage, what you actually pay for, also includes replicas, renditions (transformed versions such as thumbnails), indexes, backups, and metadata. A system that keeps three copies, as HDFS does by default, turns 292 TB into 876 TB.

Delivery is a separate calculation: views × bytes delivered per view. A popular asset can be stored once but transferred millions of times. With 50 million views per day at 500 KB each, you deliver 25 TB per day. Network links are sold in bits, so convert: 25 TB × 8 ÷ 86,400 seconds is about 2.3 gigabits per second on average, and around 12 at a fivefold peak. A CDN with a 90% hit rate may cut origin traffic to 2.5 TB per day while total delivery stays at 25 TB.

Record whether sizes are compressed and whether media has multiple renditions. State your units: 1 GB is 10⁹ bytes, while 1 GiB is 2³⁰ bytes, about 7% more. Retention is a strong lever: moving old data to a colder tier, such as an S3 archive class, lowers cost without changing the write path, though retrieval can become slower or cost more.

DECISION POINT

A podcast host stores 10,000 episodes of 50 MB each, and each episode gets 2,000 downloads a month. Is storage or transfer the bigger design concern?

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

Keep in mind

  • Storage follows writes, item size, and retention.
  • Bandwidth follows reads and bytes delivered; replicas and renditions add physical storage.
CHECK YOUR UNDERSTANDING

Put it into practice.

1 OF 4
ApplyQUESTION 01

200,000 uploads each averaging 4 MB add about how much logical data per day?

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

Next lesson

0 of 4 checkpoints answered correctly to complete this lesson.