Interview's MateSystem Design
Interview's Mate

System Design

Architecture & trade-offs

Visualizer

DSA Visualizer
All 32 lessons
Custom Playground
Try your own examples

Learning

System Design
31 architecture topics
SQL Learning
160 foundations → production topics
AI Engineering
160 LLM → backend topics
Data Science
160 Python → MLOps topics
Data Engineer
160 SQL → streaming topics
Docker
160 Docker learning topics
Kubernetes
160 K8s fundamentals → cloud
Java LearnSoon
Coming soon
Python Learn
Interview Q&A & internals
JavaScript Learn
Closures, async & DOM Q&A
Tech Learn
Search, practise & track Q&A
AI DSA Practice
Solve coding problems
Theme
Home
All topics/Back-of-the-Envelope Estimation
FUNDAMENTALS & NETWORKING · SUBTOPIC

Storage, Bandwidth & Cache Sizing

Calculate 5-year disk growth, network throughput, and how much RAM your cache needs.

BeginnerPart of Back-of-the-Envelope Estimation
Practice in AI HLD
Subtopics in Back-of-the-Envelope Estimation (3)
OverviewQPS & Peak MathStorage & BandwidthLatency Numbers

In plain words

Multiply how many items are saved each day by the size of one item, then multiply by ~2,000 days for 5 years. Cache only the hottest 20% in fast RAM.

Think of it like…

You keep all 5 years of tax receipts in a basement filing cabinet (disk), but keep today’s bills right on your desk (RAM).

Loading interactive diagram
Loading interactive exercise

Theory & how it works

Powers of 10 storage cheat sheet

10³ = 1 KB (a short tweet or JSON payload), 10⁶ = 1 MB (a compressed photo), 10⁹ = 1 GB (a short HD video), 10¹² = 1 TB (a modern server drive), 10¹⁵ = 1 PB (a large warehouse).

Don’t forget metadata and replication: if you store 100 TB of user files with 3× replication for safety, you pay for 300 TB of disk.

Bandwidth = QPS × Payload Size (× 8 for bits)

Network interfaces are rated in bits per second (1 Gbps, 10 Gbps), whereas file sizes are measured in Bytes (KB, MB). Always multiply MB/s by 8 to get Mbps.

If 10,000 requests/sec return 50 KB thumbnails, egress is 500 MB/s = 4 Gbps - which screams "put a CDN in front of origin!"

Key points & practical guide

Summary checklist

  • 5 years ≈ 1,825 days (often rounded to 2,000 days)
  • Always account for 3× replication + ~20–30% index overhead
  • 1 MB/s = 8 Mbps; 125 MB/s ≈ 1 Gbps

When to use it

  • Deciding between single DB, sharded DB, and S3 object storage
  • Justifying a CDN or Redis cache layer

Watch out for

  • Mixing up MB/s and Mbps
  • Storing images/videos in SQL rows instead of object storage

Quick check

Loading quiz
Previous subtopic
QPS & Peak Traffic Math
Next subtopic
Latency Numbers Every Engineer Should Know