Cheatsheet: System Design Numbers

Last updated 2026-11-23

Latency numbers (approximate)

Orders of magnitude, based on Jeff Dean's well-known list with modern hardware ranges

L1 cache reference                  ~1 ns
Branch mispredict                   ~3 ns
L2 cache reference                  ~4 ns
Mutex lock/unlock                   ~20 ns
Main memory reference               ~100 ns
Compress 1 KB (fast codec)          ~2 µs
Send 1 KB over 1 Gbps network       ~10 µs
Read 4 KB randomly from NVMe SSD    ~20–100 µs
Read 1 MB sequentially from memory  ~10–50 µs
Round trip in the same datacenter   ~0.5 ms
Read 1 MB sequentially from SSD     ~0.2–1 ms
HDD seek                            ~5–10 ms
Read 1 MB sequentially from HDD     ~5–20 ms
Round trip US ↔ Europe              ~80–150 ms

Rules of thumb

Memory is ~1,000x faster than SSD random reads.
Sequential reads beat random reads, on every medium.
A network call within a datacenter costs ~0.5 ms, so avoid chatty services.
A cross-region round trip costs ~100 ms, so put data near users.

Powers of two and units

Powers of two

2^10  ≈ 1 thousand   KB
2^20  ≈ 1 million    MB
2^30  ≈ 1 billion    GB
2^40  ≈ 1 trillion   TB
2^50  ≈ 1 quadrillion PB

Handy constants

Seconds in a day       86,400 ≈ 10^5
Seconds in a month     ~2.6 million ≈ 2.5 × 10^6
Seconds in a year      ~31.5 million ≈ 3 × 10^7
1 million req/day      ≈ 12 req/s
100 million req/day    ≈ 1,200 req/s

Typical object sizes

char (ASCII)           1 byte
int / int32            4 bytes
long / timestamp       8 bytes
UUID                   16 bytes (36 as text)
Short text post        ~300 bytes – 1 KB with metadata
Thumbnail image        ~10–50 KB
Photo                  ~200 KB – 2 MB
1 minute of HD video   ~50–100 MB

Estimation formulas

Traffic

Average QPS = DAU × requests per user per day / 86,400
Peak QPS    ≈ 2–3 × average (up to 10× for spiky traffic)
Write QPS   = Average QPS / (read:write ratio + 1)

Storage

Storage per day = writes per day × bytes per record
Total storage   = per day × 365 × years × replication factor (often 3)

Bandwidth

Ingress = write QPS × request size
Egress  = read QPS × response size

Cache and servers

Cache memory ≈ 20% of daily read data (80/20 rule)
Servers      = peak QPS / QPS per server

Worked example: URL shortener

100M new URLs/day         → ~1,200 writes/s
Read:write 100:1          → ~120,000 reads/s average
500 bytes per URL         → 50 GB/day → ~18 TB/year
5 years, replication ×3   → ~275 TB
Cache 20% of daily reads  → 0.2 × 10^10 reads × 500 B ≈ 1 TB of hot data

Availability

Allowed downtime

Availability   Per year     Per month    Per day
99%            3.65 days    7.3 hours    14.4 min
99.9%          8.77 hours   43.8 min     1.44 min
99.99%         52.6 min     4.38 min     8.6 s
99.999%        5.26 min     26.3 s       0.86 s

Combining components

In series (both must work):   A = A1 × A2
  99.9% × 99.9% ≈ 99.8%
In parallel (either works):   A = 1 − (1 − A1)(1 − A2)
  two 99.9% replicas ≈ 99.9999%

Rough throughput of common components

Order-of-magnitude starting points; real numbers depend heavily on hardware and workload

Web/app server (simple API)      ~1k–10k req/s per instance
Redis / Memcached                ~100k+ ops/s per node
PostgreSQL / MySQL               ~1k–10k writes/s, more for simple reads
Kafka                            ~100k–1M messages/s per cluster, more with partitions
CDN                              serves static content close to users; use it for media

FAQ