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.
A product has one million accounts but no usage data. Can you size its feed service?
Not yet. Ask about active users, read and write frequency, peaks, item and media size, and retention. Then compute order-of-magnitude request, storage, and transfer needs with stated assumptions.
Use this as a guide for self review; written answers are not graded.Keep in mind
- Estimate from behavior, data size, peaks, and retention.
- Use numbers to compare options, not to hide uncertainty behind false precision.