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.
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?
Transfer. Storage is 10,000 × 50 MB = 500 GB. Monthly delivery is 10,000 × 2,000 × 50 MB = 1,000 TB, or 2,000 times as much data moved as stored. Design around delivery first: CDN use, origin load, and transfer cost.
Use this as a guide for self review; written answers are not graded.Keep in mind
- Storage follows writes, item size, and retention.
- Bandwidth follows reads and bytes delivered; replicas and renditions add physical storage.