Why Estimation Drives Real Architectural Decisions
Back-of-the-envelope estimation is not about producing exact decimals—it is about narrowing down orders of magnitude in two minutes so you pick the right architecture.
Knowing whether a service handles 500 QPS vs. 500,000 QPS, or 2 TB vs. 20 PB over five years, immediately tells you whether a single PostgreSQL primary suffices or whether you need Kafka partitioning, consistent hashing, and object storage tiering.

Back-of-the-Envelope Estimation Cheat Sheet
1. Powers of Two Cheat Sheet
Round aggressively using powers of two to convert bytes effortlessly in your head:
| Power | Exact Value | Approximate Scale | Unit |
|---|
| $2^{10}$ | 1,024 | 1 Thousand | 1 KB |
| $2^{20}$ | 1,048,576 | 1 Million | 1 MB |
| $2^{30}$ | 1,073,741,824 | 1 Billion | 1 GB |
| $2^{40}$ | $\approx 1.1 \times 10^{12}$ | 1 Trillion | 1 TB |
| $2^{50}$ | $\approx 1.12 \times 10^{15}$ | 1 Quadrillion | 1 PB |
2. Essential Latency Numbers Every Engineer Should Know
Understanding hardware speed gaps explains why caching and sequential disk I/O dominate system design:
| Operation | Approximate Latency | Relative Scale |
|---|
| L1 cache reference | 0.5 ns | Instant |
| Mutex lock/unlock | 100 ns | 200× slower |
| Main memory (RAM) lookup | 100 ns | Fast random access |
| Compress 1 KB with Snappy/LZ4 | 10 µs | CPU-cheap |
| NVMe SSD random 4 KB read | 150 µs | 1,500× slower than RAM |
| Read 1 MB sequentially from SSD | 1 ms | Fast sequential throughput |
| Datacenter same-zone round-trip | 0.5 ms | Microservice hop budget |
| Cross-continent packet (US ↔ EU) | 150 ms | Why CDNs & Edge matter |
Three Practical Rules from This Table:
- RAM is orders of magnitude faster than SSD/disk—keep hot indexes and feeds in Redis.
- Minimize cross-datacenter round trips on synchronous user-facing requests.
- Compress payloads before sending them over wide-area networks.
3. High Availability & SLA Downtime Budgets
| Availability % | Downtime / Year | Downtime / Day | Engineering Implication |
|---|
| 99% (Two 9s) | 3.65 days | 14.4 min | Basic single-region app |
| 99.9% (Three 9s) | 8.77 hours | 1.44 min | Multi-AZ failover |
| 99.99% (Four 9s) | 52.6 minutes | 8.64 sec | Automated health checks & replication |
| 99.999% (Five 9s) | 5.26 minutes | 864 ms | Active-active multi-region, zero-downtime deploys |
4. Worked Example: Social Microblogging Capacity Math
Suppose we design a Twitter-like platform with:
- 300M Monthly Active Users (MAU), 50% Daily Active Users (150M DAU).
- Each user posts 2 tweets/day and views 50 tweets/day.
- 10% of tweets include a 1 MB image/media file.
- Retention window: 5 years.
Step A: Queries Per Second (QPS)
Remember: $1\text{ day} = 86,400\text{ seconds} \approx 10^5\text{ seconds}$ (easy mental rounding!).
- Write QPS (Tweets):
$$\frac{150\text{M} \times 2}{10^5} = 3,000\text{ QPS}$$
- Peak Write QPS ($2\times$ to $3\times$ average): ~6,000 – 9,000 QPS.
- Read QPS (Views):
$$\frac{150\text{M} \times 50}{10^5} = 75,000\text{ QPS}$$
- Peak Read QPS: ~150,000+ QPS (clearly read-heavy: demands aggressive feed caching & CDN).
Step B: Daily & 5-Year Media Storage
- Tweets per day: $150\text{M} \times 2 = 300\text{M tweets/day}$.
- Tweets with media ($10%$): $30\text{M media files/day}$.
- Daily Media Storage: $30\text{M} \times 1\text{ MB} = 30\text{ TB/day}$.
- 5-Year Media Storage:
$$30\text{ TB/day} \times 365 \times 5 \approx 54,750\text{ TB} \approx 55\text{ PB}$$
Step C: Cache Sizing (80/20 Rule)
Caching the hottest 20% of daily tweets in Redis (500 bytes metadata each):
$$300\text{M} \times 0.2 \times 500\text{ bytes} = 30\text{ GB RAM}$$
A single modest Redis cluster easily holds the entire hot working set!
Summary Checklist
- Always round $86,400 \rightarrow 10^5$ seconds/day for instant QPS estimates.
- Multiply average QPS by 2×–3× for peak sizing.
- Separate metadata storage (SQL/NoSQL) from blob storage (S3/CDN) in every estimate.