Back-of-envelope estimator
Turn users and usage into QPS, storage and bandwidth.
- Writes per second
- 38
- Reads per second
- 3.8K
- Peak reads per second
- 19K
- New data per day
- 1.6 GB
- Storage, 5 yr x 3 copies
- 9 TB
- Bandwidth out
- 15.3 Mbps
The working, as you would say it
- Writes: 3.3M users x 1 = 3.3M a day. A day is 86,400 seconds (call it 100K), so about 38 writes per second.
- Reads: 100 per write = 3.8K per second on average, 19K at a 5x peak.
- Records: 3.3M x 500 bytes = 1.6 GB a day.
- Storage: 1.6 GB x 365 = 602 GB a year. Over 5 years with 3 copies: 9 TB.
- Bandwidth: in 153 Kbps, out 15.3 Mbps on average.
- Cache: 20% of a day's reads x 500 bytes = 33 GB of memory. This is an upper bound, because it assumes every read is for a different record.
The point of an estimate is the decision it supports. Say the conclusion: is this read-heavy or write-heavy, does it fit on one machine, and is storage or throughput the hard part? Round freely; being within a factor of two is fine.