1.What to estimate before designing
Before choosing any component, a design needs five numbers: requests per second, storage growth, bandwidth, memory, and queue volume — each one rules out or rules in different infrastructure choices.
Key features
- Requests per second sizes compute, load balancers and connection pools
- Storage growth sizes database capacity, backups and retention cost
- Bandwidth sizes network links, CDN spend and egress cost
- Memory sizes caching layers and how much can be served without a database hit
- Queue volume sizes message brokers and worker pool count
The five estimation categories
- Requests/sec — sizes compute, load balancers
- Storage growth — sizes database, backups
- Bandwidth — sizes network, CDN
- Memory — sizes caching
- Queue volume — sizes broker, workers
Command
Five numbers, before any component is chosen:
requests/sec -> compute + load balancing
storage growth -> database + backups
bandwidth -> network + CDN
memory -> caching
queue volume -> message broker + workersFive numbers before any component: requests/sec, storage growth, bandwidth, memory, queue volume — each sizes a different part of the design.