Which numbers should you know for back-of-the-envelope estimation?
EasyConceptBack-of-the-Envelope Estimation
Answer
Memorise a small set of approximations so you can size a system quickly: time conversions, powers of ten for data sizes, and rough latencies for common operations.
- Time: one day is 86,400 seconds, roughly 10^5; one month is about 2.5 million seconds.
- Data sizes: 1 KB = 10^3 bytes, 1 MB = 10^6, 1 GB = 10^9, 1 TB = 10^12 and 1 PB = 10^15; the binary units are close enough for estimates.
- Latency: main memory reference about 100 ns; SSD random read about 100 µs; round trip within a data centre about 0.5 ms; disk seek about 10 ms; cross-continent round trip about 150 ms.
- Takeaway: memory is far faster than disk, and network round trips between regions dominate response time.
More in Back-of-the-Envelope Estimation
| # | Problem | Platform | Difficulty | Open | 1st1st Visit | 2nd2nd Visit | RevRevise |
|---|---|---|---|---|---|---|---|
| 1 | Which numbers should you know for back-of-the-envelope estimation? | Concept | Easy | Read the answer to Which numbers should you know for back-of-the-envelope estimation? | |||
| 2 | How do you estimate the queries per second (QPS) a system must handle? | Concept | Medium | Read the answer to How do you estimate the queries per second (QPS) a system must handle? | |||
| 3 | How do you estimate the storage a system will need over several years? | Concept | Medium | Read the answer to How do you estimate the storage a system will need over several years? | |||
| 4 | How do you estimate bandwidth, cache size and the number of servers? | Concept | Medium | Read the answer to How do you estimate bandwidth, cache size and the number of servers? |