Loading
0x10Lesson 2 of 13

Estimate scale on the back of an envelope

Turn user counts into requests per second, storage, and bandwidth.

20 min 6-question quiz
By the end of this lesson you can
  • Convert daily traffic into average and peak requests per second.
  • Estimate storage growth from write volume, record size, and retention.
  • Round aggressively and focus on orders of magnitude.

Estimation turns “lots of users” into numbers that drive decisions. Does the data fit on one machine? Do reads need a cache? Is one database enough for the write rate? You are not expected to be precise - you are expected to be within an order of magnitude, quickly, and to use the result.

The numbers to remember

  • A day has 86,400 seconds. For quick math, call it ~100,000 (10^5).
  • Average QPS = daily requests ÷ 86,400. Peak QPS is often assumed to be 2-3× the average.
  • Storage = writes per day × bytes per write × days retained.
  • Sizes: 1 KB ≈ 10^3 bytes, 1 MB ≈ 10^6, 1 GB ≈ 10^9, 1 TB ≈ 10^12, 1 PB ≈ 10^15.
  • Read:write ratio tells you which path to optimize. A social feed might be 100:1.

A worked example: 100 million daily users making 10 requests each is 1 billion requests a day. Exactly, that’s about 11,574 QPS on average and 23,148 QPS at a 2× peak.

With the 10^5 shortcut: 100 million users × 10 requests = 10^9 requests per day, divided by 10^5 seconds ≈ 10,000 QPS. That is close enough to decide that a single application server will not do, but a handful behind a load balancer will. Storage works the same way: 1 million posts a day × 1 KB × 365 days × 5 years ≈ 1.8 TB, which a single database can hold - so you may not need sharding for size alone.

Practice: estimate on the spot

Try it

Up to 15 XP

Back-of-the-envelope drill

Work these out in your head or on paper, using 10^5 seconds in a day. You only need the right order of magnitude, and every answer comes with what it means for the design.

Question 1 of 5Score 0/5
requests/second
You can write 10000, 10k, 1e4 or 10^4.

Key takeaways

  • QPS ≈ daily requests ÷ 10^5; plan for peaks of 2-3× the average.

  • Storage ≈ writes/day × size × retention.

  • Every estimate should end with a design consequence.

Lesson quiz

6 questions · pass with 5 correct · up to 50 XP

Passing this quiz completes the lesson and keeps your streak going. Questions you miss come back in review sessions later.

Questions about this lesson

Stuck? Ask. Figured something out? Share it. Explaining is one of the best ways to learn.

Loading posts…