System Designestimator

Back-of-envelope estimator

Most capacity questions start with a number of users and end with a number of machines. In between is a few lines of arithmetic: requests per day, requests per second, bytes per day, bytes held. This calculator does those lines and shows each one.

Read-heavy

This workload peaks at 2,546/s and holds 54.8 TB after 1,825 days.

Peak QPS2,546/s2,315/s reads, 231/s writes
Storage held54.8 TB1,825 days with 3 copies

Inputs

Reads and writes together.

10 means a 10:1 read:write ratio. Below 1 means mostly writes.

Busiest second divided by the average second.

Bytes stored by one write and returned by one read: 1 KB.

Average QPS1,273/s1,157/s reads, 116/s writes
New data per day30 GB10 GB before replication
New data per year11 TBWith replication
Bandwidth out2.3 MB/sPeak; 1.2 MB/s on average
Bandwidth in231.5 KB/sPeak; 115.7 KB/s on average

What it shows

A capacity question starts with a number of users and ends with a number of machines. In between is a few lines of arithmetic. This calculator does those lines and writes out each one, so you can check it or redo it on a whiteboard.

The aim is the right order of magnitude, not a forecast: thousands of requests a second or millions, gigabytes or petabytes.

How to read it

  • Requests per day is daily active users times requests per user. The read:write ratio splits them into reads and writes.
  • Average QPS divides the daily total by 86,400, the seconds in a day. Peak QPS multiplies that by your peak-to-average factor.
  • New data per day counts only writes: each stores one payload, copied once per replica.
  • Storage held is new data per day times retention. It assumes traffic stays flat, so add growth on top.
  • Bandwidth out is reads times payload size. Bandwidth in is writes times payload size. Both show peak and average.

Questions

Why divide by 86,400?

There are 86,400 seconds in a day (24 × 60 × 60). Dividing a daily total by it gives the average per second. Rounding it to 100,000 is a common shortcut when working by hand; it makes the answer about 14% lower.

What peak-to-average factor should I use?

Use your own traffic graphs if you have them: divide the busiest second (or minute) by the daily average. Without data, pick a factor, state it as an assumption, and see how much the answer changes when you double it.

Why does storage count only the payload?

Indexes, metadata, write-ahead logs, compaction space and backups depend on the database and schema, so they cannot be derived from these inputs. Estimate them separately and add them on top of the payload figure.

Why decimal units?

Storage and network capacity are usually sold in decimal units (1 GB = 1,000,000,000 bytes), and decimal numbers are easier to multiply by hand. Binary units (1 GiB = 1,073,741,824 bytes) are about 7% larger at that size.

Learn it properly

Explore further

Last updated

More tools

All tools

Your first senior-level
lesson is free.

Choose a course, open a free lesson, and explore an idea you’ve wanted to understand.