Skip to main content

Why Estimation Matters

Back-of-envelope estimation is the skill that separates engineers who design systems from engineers who describe systems. When you estimate that your Twitter-like system needs 300,000 QPS for timeline reads, that single number immediately tells you: a single database will not work, you need aggressive caching, and fan-out-on-write (pre-computing timelines) makes more sense than fan-out-on-read. The estimate drives the architecture. In system design interviews, you’re expected to:
  • Size your system - How much storage? How many servers? (This determines whether you can get away with a single database or need sharding)
  • Identify bottlenecks - Where will the system break? (The estimation reveals whether your bottleneck is compute, storage, bandwidth, or connections)
  • Make trade-offs - Is this worth the complexity? (If your estimate shows 100 QPS, you do not need Kafka — a simple database queue suffices)
  • Validate assumptions - Does this approach even work? (If your estimate requires 500TB of RAM for caching, your caching strategy is wrong)
Don’t aim for precision. Round numbers aggressively. The goal is order of magnitude, not exact values. 86,400 seconds ≈ 100,000 is perfectly fine.

Essential Numbers to Memorize

Time & Scale

Data Units

Latency Numbers

Availability Numbers

Common Calculation Patterns

Pattern 1: QPS from Daily Active Users

Pattern 2: Storage Estimation

Pattern 3: Bandwidth Estimation

Pattern 4: Server Capacity

Pattern 5: Cache Sizing (80/20 Rule)

Complete Example: URL Shortener

Let’s walk through a complete estimation for a URL shortener like bit.ly.

Requirements & Assumptions

Traffic Estimation

Storage Estimation

Short URL Length

Bandwidth Estimation

Memory (Cache) Estimation

Summary

Complete Example: Twitter Timeline

Requirements

Timeline Generation QPS

Fan-out Calculation

This is one of the most important estimation exercises in system design because it demonstrates how a single architectural choice (push vs pull) has dramatic implications that only become visible through the numbers. This is the exact problem Twitter (now X) faced, and their solution (hybrid fan-out) has become a canonical case study.

Storage for Timelines

Estimation Cheat Sheet

Interview Tips

Show your work: Write down assumptions clearly. State “assuming 100K seconds in a day” before calculating.Round aggressively: Use powers of 10. 86,400 → 100,000 is fine.Sanity check: Does the answer make sense? 1 million GB is suspicious.Ask about scale: “Are we designing for 1M or 100M users?” This changes everything.Know your powers: 2^10 ≈ 1000, 2^20 ≈ 1M, 2^30 ≈ 1B, 2^40 ≈ 1T

Capacity Planning Calculator

Use these utility classes for quick estimations in interviews or actual capacity planning: