1.What a back-of-the-envelope estimate covers
A back-of-the-envelope pass covers seven quantities: network bandwidth, storage, memory, cache size, queue depth, CPU needs and database IOPS — done fast, on the spot, with rounded numbers rather than a spreadsheet.
Key features
- Seven quantities: bandwidth, storage, memory, cache size, queue depth, CPU, IOPS
- CPU needs and database IOPS are the two beyond section 4's five request-facing categories
- The goal is a fast, rounded estimate, not a precise one
- Each quantity answers a different design question, not a substitute for the others
The seven back-of-the-envelope quantities
- Seven quantities, rounded, on the spot
- Over the wire
- Network bandwidth — RPS x average payload, converted to bits — links are rated in bits per second
- On disk
- Storage — records x size x retention
- Database IOPS — reads/sec plus writes/sec that actually reach the disk, after the cache
- In RAM
- Memory — the working set, not the total data size
- Cache size — hot subset x item size
- Work per second
- CPU needs — work per request x RPS, read as cores at 100% utilisation
- Queue depth — arrival rate against service rate
Command
Seven quantities, on the spot, rounded:
bandwidth · storage · memory · cache size
queue depth · CPU needs · database IOPSSeven quantities for a fast estimate: bandwidth, storage, memory, cache size, queue depth, CPU needs, database IOPS.