Back-of-the-envelope numbers scare people because they feel like maths. They are not; they are four rounded multiplications.
The four numbers I keep in my head
- A day has about 100,000 seconds.
- 1M requests a day is about 10 per second.
- A row of user data is about 1 KB.
- One machine serves a few thousand simple requests per second.
A worked example
10M daily users, each reads 20 times a day: 200M reads a day, about 2,000 reads per second, peaks maybe 3x: 6,000 per second. That is a handful of machines behind a cache, not a data centre.
Say the rounding out loud. The interviewer wants to see you sanity-check a design, not compute to the third decimal.