What the results mean

Each result starts from a guess about users, so treat it as a rough size, not an exact answer.

  • QPS (queries per second): how many requests reach the system each second, on average and at the peak.
  • Storage: how much disk the saved data takes over the years you keep it, copies included.
  • Bandwidth: how many bytes cross the network each second.
  • Cache: how much memory holds the most-read data, so fewer reads reach the database.

Change the inputs below, or start from a preset such as a URL shortener or a news feed.

Interview Presets:
100.0 Million users
Actions per active session
90% Read : 10% Write
Typical standard: 2x to 3x
Metadata vs Blob size
1,095 days of data
Each piece of data is stored this many times
Query Per Second (QPS)
57,870 QPS
Peak: 144,675 QPS (2.5x)
Read: 52,083 • Write: 5,787
Network Bandwidth
813.8 Mbps
Ingress: 90.4 Mbps
Egress: 813.8 Mbps
Storage Required (3 Yrs, 3x Replication)
3059.4 TB
Daily: 953.7 GB/day
Monthly: 27.94 TB × 3 copies = 83.82 TB
Redis RAM Cache (80/20)
1716.6 GB RAM
Caches 20% daily read volume
Suggested: ~1728 GB across cluster

Mathematical Derivations & Interview Formulas

1. Traffic & QPS Derivation:
Total Requests/Day = DAU (100,000,000) × Requests/User (50) = 5,000,000,000 req/day
Average QPS = Total Requests / 86,400s ≈ 5,000,000,000 / 86,400 = 57,870 QPS
Peak QPS = Avg QPS × 2.5 = 144,675 QPS
2. Storage Capacity Derivation:
Write Requests/Day = Total (5,000,000,000) × 10% = 500,000,000 writes/day
Daily Data Written = Writes/Day × Payload (2 KB) = 953.7 GB / day
Retention Storage (1095 days with 3x replication) = 953.7 GB × 1095 × 3 = 3059.4 TB
3. Cache Sizing (The Pareto 80/20 Rule):
Daily Read Requests = Total (5,000,000,000) × 90% = 4,500,000,000 reads/day
To satisfy 80% of read traffic, cache 20% of daily unique read items in RAM:
Cache RAM = 20% × 4,500,000,000 × 2 KB = 1716.6 GB RAM