LESSON 03 · Scale estimates

Use rough numbers to test the shape

Estimate enough to expose a capacity or design decision.

SYSTEM VIEW

The decision path

Diagram view
Swipe or scroll to explore the full diagram
Use estimates to test a hypothesisStart with rough traffic and data assumptions, derive order-of-magnitude rates, then ask whether a proposed component can handle them.Use estimates to test a hypothesiscalculatecomparerevise a weak assumptionAssumed workloadusers · actions · bytesDerived demandQPS · storage · bandwidthCapacity checkheadroom or bottleneck?The useful output is a decision and its uncertainty, not a precise-looking number.
Start with rough traffic and data assumptions, derive order-of-magnitude rates, then ask whether a proposed component can handle them.
Follow how each decision narrows and strengthens the design.
THE IDEA

How it works

Back-of-the-envelope figures are rough calculations done by hand, good to about one order of magnitude (a factor of ten). They can show whether one machine is plausible and which path deserves attention. Begin with active users, actions per user, peak-to-average traffic, item size, and retention. “Millions of users” alone is not a workload.

Here is an example with assumed numbers. One million daily users opening a feed ten times gives 10 million reads per day, or about 116 per second on average (10,000,000 ÷ 86,400 seconds). If the busiest period runs at five times the average, plan for roughly 580 reads per second. If one user in ten posts once a day, that is 100,000 writes per day at 1 KB each: about 100 MB per day, or 36.5 GB per year.

Two findings follow. Reads outnumber writes 100 to 1, so the read path deserves attention first. The text also fits comfortably on a single Postgres server, so storage alone does not force splitting the data across machines.

Keep units and assumptions visible so a colleague can challenge them. The risk is false precision: 116 looks exact but rests on guesses, so use it to compare options, not to promise capacity. Recalculate when a key assumption changes, and validate with real traffic once it exists. Skip the exercise when no answer would change the decision, as with an internal tool used by a few dozen people.

DECISION POINT

A product has one million accounts but no usage data. Can you size its feed service?

Write a sentence or two to unlock the guidance. Committing first is what makes it stick.

Keep in mind

  • Estimate from behavior, data size, peaks, and retention.
  • Use numbers to compare options, not to hide uncertainty behind false precision.
CHECK YOUR UNDERSTANDING

Put it into practice.

1 OF 2
ApplyQUESTION 01

Your feed estimate comes to about 116 reads and about 1 write per second on average. Which conclusion is the most useful?

Choose an answer. You’ll see the explanation once you get it right.

Next lesson

0 of 2 checkpoints answered correctly to complete this lesson.