Worked estimates for real designs (a chat app, a video site, a URL shortener) and the shortcuts that keep them quick.
The earlier page on Back-of-the-Envelope Estimation gave you the round-number rules. This page is about using them in order: one repeatable workflow, applied to three real designs, ending in a decision.
An estimate is a chain of small, simple multiplications. Each link is easy. The risk is in the order you do them, the units you carry, and the steps you forget (peak traffic, copies, bits versus bytes). A fixed routine removes that risk.
You already know 1 day ≈ 100,000 seconds and the size units from the earlier page. Here are the shortcuts you build on top of them. Each one is checked, so you can trust it.
| Shortcut | Check | Use it for |
|---|---|---|
| 1 million per day ≈ 12 per second | 1,000,000 / 86,400 = 11.6 | Daily requests to QPS |
| 100 million per day ≈ 1,200 per second | 100 x 11.6 = 1,160 | Large daily counts |
| 1 billion per day ≈ 12,000 per second | 1,000 x 11.6 = 11,600 | Very large daily counts |
| 1 KB x 1 million = 1 GB | 1,000 B x 1,000,000 = 10^9 B | Storage of small records |
| 1 MB x 1 million = 1 TB | 10^6 B x 10^6 = 10^12 B | Storage of medium files |
| 1 GB x 1 million = 1 PB | 10^9 B x 10^6 = 10^15 B | Storage of large files |
| 1 year ≈ 3 x 10^7 seconds, or 365 days | 365 x 86,400 = 31.5 million | Yearly numbers |
| Gbps = bytes per second x 8 / 10^9 | 1 GB/s = 8 Gbps | Bandwidth from bytes |
All numbers below are illustrative assumptions, not real company figures. In every case we state the inputs first, then compute.
| Step | URL shortener | Chat app | Photo sharing |
|---|---|---|---|
| Assume | 50 M daily users, 0.1 new links each, 100 reads per write, 500 B per record | 50 M daily users, 40 messages each, 2 reads per message, 500 B each | 20 M daily users, 0.5 photos each, 50 views per photo, 1 MB each |
| Writes per day | 50 M x 0.1 = 5 M | 50 M x 40 = 2 B | 20 M x 0.5 = 10 M |
| Reads per day | 5 M x 100 = 500 M | 2 B x 2 = 4 B | 10 M x 50 = 500 M |
| Average QPS (/ 100,000) | 50 writes + 5,000 reads | 20,000 writes + 40,000 reads | 100 writes + 5,000 reads |
| Peak QPS (x 3) | 150 writes + 15,000 reads | 60,000 writes + 120,000 reads | 300 writes + 15,000 reads |
| Storage per day | 5 M x 500 B = 2.5 GB | 2 B x 500 B = 1 TB | 10 M x 1 MB = 10 TB |
| Total, 5 years x 3 copies | 2.5 GB x 365 x 5 x 3 ≈ 14 TB | 1 TB x 365 x 5 x 3 ≈ 5.5 PB | 10 TB x 365 x 5 x 3 ≈ 55 PB |
| Peak bandwidth out | 15,000 x 500 B = 7.5 MB/s = 0.06 Gbps | 120,000 x 500 B = 60 MB/s = 0.5 Gbps | 15,000 x 1 MB = 15 GB/s = 120 Gbps |
| Cache (20% of a day of reads) | 500 M x 500 B x 0.2 = 50 GB | 4 B x 500 B x 0.2 = 400 GB | 500 M x 1 MB x 0.2 = 100 TB (too big: use a CDN) |
| Decision | One small database holds it. Reads at 15,000/s need a cache and replicas. | Writes at 60,000/s and petabytes: shard by conversation. | Bandwidth and storage dominate: object storage plus a CDN. |
| Number | Formula | Decision it drives |
|---|---|---|
| Average QPS | (users x actions per user per day) / 100,000 | Baseline server count |
| Peak QPS | Average x 2 to 3 (a spiky service: up to 10) | What you must survive |
| Read:write ratio | Reads per write | Cache and replicas (high), partitioning and queues (low) |
| Storage per year | Writes per day x size x 365 | One database, or sharding and tiers |
| Total storage | Per year x years kept x copies | The cost of keeping data, and when to archive |
| Bandwidth out | Peak reads x size x 8 bits | Network limits and whether a CDN is needed |
| Cache size | 0.2 x one day of read data (80/20 rule) | Memory per cache node and how many nodes |
| Servers | Peak QPS / QPS per server, at least 2 | Fleet size and headroom |
| If you see... | It suggests... | Why |
|---|---|---|
| Peak writes of a few thousand per second or less | One primary database can work | Typical limit of one well-tuned primary (very rough) |
| Reads above a few thousand per second | A cache and read replicas | Offload the database |
| Data past a few terabytes | Plan sharding or distributed storage | One machine runs out of disk and memory |
| Outbound traffic past about 1 Gbps | A CDN for static or large content | Cheaper and closer to users |
| Cache needs more memory than one machine | Distributed cache or cache only the hottest part | Memory is the limit |
The rounded day (100,000 s) is 14% off the exact one (86,400 s) for QPS. That is fine for an estimate. All inputs are illustrative assumptions, not real company statistics. Sizes use 1 KB = 1,000 bytes. The limits behind the verdicts (5,000 writes/s, 2,000 and 20,000 reads/s, 10 TB, 1 PB, 1 and 10 Gbps, 1 K requests/s per server) are rough rules of thumb.
| Term | Meaning in easy words |
|---|---|
| QPS | Queries (requests) per second |
| Peak QPS | The busiest rate you must handle, often 2 to 3 times the average |
| Read:write ratio | How many reads for each write |
| Replication factor | How many copies of each piece of data are kept |
| Bandwidth | How much data moves per second, often in bits (Gbps) |
| Egress | Data leaving the system, which is often what you pay for |
| 80/20 rule | About 20% of the data gets about 80% of the reads, so cache that part |
| Headroom | Spare capacity kept for spikes and failures |
| Sanity check | Comparing a result with something you know to catch a big mistake |
| Order of magnitude | A factor of ten. Estimates aim to be right within this |
| False precision | Writing many digits that the inputs do not support |
| Choice | We gain | We lose |
|---|---|---|
| Round to powers of ten | Speed and clarity | Up to a few tens of percent error |
| Design for peak | Survives spikes | Spare servers most of the day |
| Count all copies | A true storage and cost figure | A bigger, scarier number |
| Skip bandwidth | Saves time | May miss that a CDN is needed |
| More steps | A more complete picture | Less time for the design itself |