How it works
Begin with a small set of stated assumptions: daily active users (DAU, the people who use the product on a given day), actions per active user, read-to-write mix, item size, retention, and expected peaks. Registered accounts alone cannot tell you how many requests arrive today, because many accounts are dormant. Keep each assumption beside its unit so another person can challenge it.
Here is an example. A service has five million registered accounts, and 20% are active on a typical day, giving one million DAU. Each opens a feed ten times, so that is ten million feed opens per day. If 5% of active users post once, that is 50,000 writes per day, a read-to-write ratio of 200 to 1. Using all five million accounts as daily users would inflate the estimate fivefold, to 50 million opens, and might push the team toward infrastructure it does not need.
The goal is a plausible workload model, not a precise forecast. Spend minutes on it, not days, since you only need the right order of magnitude. If the system already runs, use measurements instead of guesses: web server access logs show real request counts, and Postgres’s pg_stat_statements extension shows which queries run most often. Also pick the time window that fits the product: a payroll tool used twice a month is better modeled by its busiest day than by DAU.
A product has five million accounts. Which three usage figures would you request before estimating its read traffic?
Ask for the daily active share, reads or sessions per active person per day, and a peak-to-average factor or hourly traffic curve. The account count by itself gives none of those rates.
Use this as a guide for self review; written answers are not graded.Keep in mind
- Start with active behavior and a time window.
- Write assumptions and units before calculating capacity.