Numbers Every Beginner Should Know
Before this, it helps to know: What is System Design?.
Read a little, play a little. No scary maths, and no rush.
Latency: feel the orders of magnitude
Memorize this ladder — interviewers expect you to feel these gaps:
- L1 cache: ~1 nanosecond. Basically free.
- RAM: ~100 nanoseconds. 100× slower than cache, still instant.
- SSD read: ~100 microseconds. A thousand times RAM.
- Network round-trip (same city): ~1 millisecond. Ten thousand times RAM.
- Cross-continent: ~100+ milliseconds. A million times a cache hit.
The moral: every network hop costs roughly a million cache hits. That's why we cache, batch, and keep hot data close.
The only division you need
A day has 86,400 seconds (≈ 10⁵, say it as "ten to the five"). So:
- 1 million requests/day ≈ 12 per second average. Peak maybe 3×: ~36 rps. One server yawns.
- 1 billion requests/day ≈ 12,000 per second. Now we're talking load balancers and sharding.
Say "a million a day is a dozen a second" out loud in an interview and watch the room relax — back-of-envelope math signals seniority instantly.
Storage in your head
1 million users × 1 KB of profile data = 1 GB. Photos at 1 MB each × 1 million = 1 terabyte. Always say your units aloud ("per day?", "bytes or kilobytes?") — half of estimation is just confirming what you're counting.
A worked estimate: a chat app
Ten million daily users each send about 40 messages a day.
- Messages: 10M × 40 = 400 million a day. Divided by 86,400 seconds, that is roughly 4,600 per second on average. Plan for a peak around three times that, so about 14,000 per second.
- Storage: at about 200 bytes per message, 400M × 200 B = 80 GB a day, or roughly 29 TB a year.
- Conclusion: the message rate needs several servers behind a load balancer, and the storage growth means planning for a database that can be split across machines within the first year.
Five lines of arithmetic, and the design questions that matter are already on the table.
Reference numbers worth keeping
- Size units: 1 KB ≈ 10³ bytes, 1 MB ≈ 10⁶, 1 GB ≈ 10⁹, 1 TB ≈ 10¹².
- Time units: a month is about 2.6 million seconds, a year about 31.5 million.
- One server: a single well-built web server can often handle hundreds to thousands of simple requests per second, depending heavily on how much work each request does. Treat that as a rough starting point, then measure.
Availability, in minutes
Uptime targets sound similar and are not:
- 99.9% ("three nines") allows about 8.8 hours of downtime a year, or about 43 minutes a month.
- 99.99% ("four nines") allows about 53 minutes a year, or about 4 minutes a month.
Each extra nine cuts the allowance by ten times, and usually raises the cost of the system considerably. Asking "how many nines do we actually need?" is a fair and senior question.
Remember this
- ns → µs → ms ladder: cache, RAM, SSD, network.
- 1M/day ≈ 12 rps. 1B/day ≈ 12k rps. Storage = users × bytes each.
Check your understanding
5 questions · first-try answers earn the most XP
My notes
Saved in this browser. Highlight a line above and save it, or write it in your own words.
Nothing saved yet. Your highlights will live here.
References
Finished reading?
Ticking it here also ticks the chapter in the sidebar, the section count and your streak — it is all one number.
End of Start Here
Take the section checkpoint
A short mixed quiz on all 2 chapters, to check you are ready to move on.
Related chapters
Spotted a mistake or want a topic covered? Report an issue