Requirements & back-of-envelope estimation
Turn a vague prompt into numbers you can design against before drawing a single box.
Every design starts with two lists: what the system must do (functional) and how well it must do it (latency, availability, durability, cost). Most bad designs skip the second list and optimise the wrong thing.
Then put numbers on it. Daily active users, actions per user per day, and the size of one record give you requests per second and storage per year. You are not after precision. You are after the order of magnitude, because 100 requests per second and 100,000 requests per second are different architectures.
Write down the read/write ratio. A 100:1 read-heavy system pushes you toward caching and replicas. A write-heavy one pushes you toward queues, partitioning and append-only storage.
Key points
- Separate functional requirements from quality attributes, and rank the quality attributes.
- Peak traffic is usually 2-10x the average. Design for peak, budget for average.
- State your assumptions out loud so they can be corrected cheaply.
- Read/write ratio is the single most useful number for choosing a storage design.
Answer these out loud
- 1A photo app has 5M daily users who upload 2 photos each at 3 MB. How much storage per year, and what is the write bandwidth at peak?
- 2Which requirement would you ask about first for a payments system, and why is it different for a news feed?
Build it
Write a 20-line script that takes DAU, actions/user/day, record size and read/write ratio, and prints QPS, peak QPS and yearly storage.
Use this from an agent
Any MCP client, including Grok, can read this lesson. See how to connect.
curl https://engineeros-delta.vercel.app/api/v1/topics/requirements-and-estimation