Storage, Bandwidth & Cache Sizing
Calculate 5-year disk growth, network throughput, and how much RAM your cache needs.
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).
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