Topic 1 of 6 · 4 min read
Checking capacity and scaling assumptions
Goal: Check a design's load estimate with back-of-envelope numbers and name the first component that will saturate.
A design is only credible if its load numbers survive five minutes of arithmetic, and if you can name the first thing that will break as traffic grows. Reviewing capacity is not about guessing the future. It is about checking that the author did the sums and found the bottleneck.
Check yourself · 1 of 3
A design expects 8.64 million requests a day. About how many requests per second is that on average?
Why it matters
Designs fail at their weakest part, not their average part. A service that scales to twenty servers is useless if every request still waits on one database connection pool. Agents such as Claude, ChatGPT or Gemini will happily write "this design scales horizontally" without a single number behind it.
How to review it
- Find the stated load. Users, requests per day, data size. If there is none, ask for it before reading further.
- Convert to per-second. A day has 86,400 seconds. One million requests a day is about 12 requests per second on average. Peaks are often several times the average, so ask what the peak factor is.
- Size the data. Rows per day times bytes per row times retention. Check it against disk and memory.
- Walk the request path and write the rough limit of each hop: load balancer, app servers, cache, database, third-party API. The smallest limit is the first to saturate.
- Check state. Stateless services scale by adding copies. Sessions held in server memory, local file uploads and in-process caches stop that.
- Compare scaling options. Vertical scaling (a bigger machine) is simple and has a ceiling. Horizontal scaling (more machines) has no such ceiling but needs stateless code and a shared data layer.
Before and after
Weak: "The API will handle 10 million users with auto-scaling app servers and one PostgreSQL instance."
Better: "10 million registered users, about 5 percent active daily, so 500,000 people. At 20 requests each that is 10 million requests a day, about 115 per second on average, and say 600 at peak. One app server handles that. The database is the first limit: the feed query does 4 reads, so 2,400 reads per second at peak. We add a read replica and a cache before launch."
The second version can be checked and challenged. The first cannot.
What goes wrong
- Averages instead of peaks. A sale, a launch email or a retry storm multiplies traffic in minutes.
- Scaling the wrong tier. Adding app servers when the database is the limit only moves the queue.
- Hidden state. An upload saved on one server's disk breaks the moment a second server appears.
- Invented numbers. Figures with no source or derivation are guesses with a confident tone.
Examples
Daily volume to per-second
A design says "we expect 3 million events a day". 3,000,000 divided by 86,400 is about 35 events per second on average. If events arrive in a two-hour evening window, the real rate is closer to 400 per second. The review question is which number the database was sized for.
The upload that blocks scaling
A document says app servers scale horizontally, and also that files are saved to /var/uploads on the server. With two servers, a user can upload to one and download from the other and get a 404. The fix is shared object storage, not more servers.
Key points
- Ask for the stated load first, then convert it to requests per second with a peak factor.
- The first component to saturate is the smallest limit on the request path, and it is often the database or a third-party API.
- Horizontal scaling needs stateless services; local sessions, local files and in-process caches block it.
- Vertical scaling is the simplest first step, but it has a hard ceiling and a single point of failure.
- A scaling claim without numbers is an opinion, not a design.
Common mistakes
- Accepting "it scales horizontally" without asking which component is the bottleneck.
- Using average traffic and ignoring peaks, launches and retry storms.
- Adding app servers while the database stays the single limit.
- Forgetting data growth: the design works on day one and fills the disk in six months.
Check yourself · 2 of 3
A design adds ten more app servers, but the single database is already at its connection limit. What is the likely result?
Check yourself · 3 of 3
Which design detail most directly prevents adding a second app server?
Practice items, not counted towards your mastery.
Start here
- The System Design Primer (opens in a new tab)ToolFree
A free, long-lived study guide covering scaling, caching, queues and back-of-envelope estimates.
- Site Reliability Engineering (Google SRE book) (opens in a new tab)BookFree
Google's free book on running reliable services: monitoring, overload, failure and release practice.
- Cloud design patterns (Azure Architecture Center) (opens in a new tab)DocsFree
A catalogue of named patterns such as cache-aside, retry, circuit breaker and queue-based load leveling.