Back-of-the-Envelope Math
Powers-of-10 shortcuts, visual latency scales, and single-node limits so you can estimate QPS, storage, and sharding thresholds in seconds without rote memorization.
1. The “chop 5 zeros” traffic shortcut
There are 86,400 seconds in a day. In system design, round that straight to 105 seconds. Converting daily volume to average requests per second becomes instant subtraction of exponents:
| Daily volume | Exponent math | Average RPS | Peak (2–3× / spiky 10×) |
|---|---|---|---|
| 1M / day | 106 / 105 = 101 | 10 RPS | 25–100 RPS |
| 100M / day | 108 / 105 = 103 | 1K RPS | 2.5K–10K RPS |
| 1B / day | 109 / 105 = 104 | 10K RPS | 25K–100K RPS |
Other handy time anchors:
- 1 month ≈ 2.5 × 106 seconds
- 1 year ≈ 3 × 107 seconds (or ~400 days when multiplying daily storage for clean headroom)
2. Storage math by adding exponents
Memorize one ladder of decimal powers — every jump is +3 to the exponent:
10³ · 10⁶
KB · MB
10⁹ · 10¹²
GB · TB
10¹⁵ · 64 TB
PB · cloud DB cap
Worked mental shortcut:
200M items × 500 bytes = (2 × 10⁸) × (5 × 10²) = 10 × 10¹⁰ = 10¹¹ bytes
= 100 GB.
To get annual replicated storage:
items/day × bytes/item → bytes/day → × 400 (1 year with headroom) →
× 3 (standard replication factor).
Slide the inputs below (or click a preset) to build intuition for when a system stays on a single database versus when it forces caching or sharding.
interactive · slide daily volume or pick a preset to see the powers-of-10 shortcut
10^8 / 10^5 = 10^3 ≈ 1K RPS5-yr storage (600 TB) exceeds 64 TB cloud DB cap → shard
3. The latency ladder (why networks dominate)
Raw numbers like 100 ns vs 150 ms are easy to forget because human brains
don’t feel microseconds. Toggle human scale (1 ns = 1 second) below: once
you see that a cross-continent round trip is 5 years compared to 90
seconds for RAM, you will never accidentally put a synchronous cross-region
call inside a hot loop.
interactive · toggle human scale (1 ns = 1 s) or click any row to set the baseline
baseline: RAM read · cross-continent RTT is 1.5M× slowerlog scale · 1 ns → 1 sec
4. Single-node throughput ceilings
Before adding Kafka, sharded clusters, or microservices, check whether a single modern box already handles your numbers:
| Component | Rough single-node ceiling | When to scale out |
|---|---|---|
| App server | 1K–10K RPS (CPU vs I/O bound) | Stateless horizontal fleet behind L7 LB |
| PostgreSQL / MySQL | ~10K QPS · ~64 TB cloud storage cap | Read replicas for reads; shard or NoSQL for writes / >64 TB |
| Redis | ~100K ops/s · RAM-bound (tens of GB) | Redis Cluster shards (e.g. 20 shards ≈ 1M+ RPS) |
| Network NIC | 10 Gbps ≈ ~1 GB/sec practical | CDN / object storage for media & blobs |
lesson
Two numbers win half of all system design interviews: 10K QPS (where a single relational primary starts sweating) and 64 TB (where managed cloud DB storage caps out). Always compare your estimate directly against those two ceilings.
Where this shows up in system design
- Design URL Shortener100M writes/day → ~1.2K avg / 10K peak RPS; ~100 GB/day raw shows storage is cheap while hot reads need Redis.
- Design Rate Limiter1M peak RPS / 50K–100K ops per Redis shard immediately derives a 20-shard Redis Cluster; 100K rules × 100 B ≈ 10 MB fits in gateway RAM.
- Design Chat / News Feed10K QPS Postgres cap explains why fan-out feeds use Redis and message histories shard by channel or use LSM storage.
- Design Video / Photo Upload100M photos/day × 1 MB = 100 TB/day immediately rules out storing blobs in a 64 TB relational DB → object storage (S3) + CDN.
Quick mental-math drill
interactive · compute these in your head without a calculator
01 · Daily requests to peak RPS
1B/day = 10⁹ · 1 day ≈ 10⁵ s · 5× peak
An API serves 1 billion requests/day with spiky 5× peak traffic. What are the rough average and peak RPS?
Select an option to check the trade-off.
02 · Add exponents for daily storage
200M/day · 500 B/event · 3× replication · 64 TB cap
Your service ingests 200M events/day at 500 bytes each. How much raw data lands per day, and will 5 years (3× replicated) fit in a 64 TB cloud DB?
Select an option to check the trade-off.
03 · Latency budget check
50ms p99 budget · cross-continent RTT ≈ 150ms
Your checkout endpoint has a 50ms p99 latency budget. A teammate proposes making 1 synchronous cross-continent RPC to a primary DB in another region.
Select an option to check the trade-off.