Cut the bill
Statement
A startup pays $4225 a month: a load balancer, 20 app instances, a 64 GB cache, a tier “l” database and two “l” replicas. The traffic is 400 requests/s, 800 at the peak. Simplify the diagram: fit the $2400 budget while keeping the SLO — ideally half of it. Count what each block contributes: one app instance per 300 requests/s, a write costs 3 units, a cache catches 60–95 % of reads.
Constraints
- p95 ≤ 250 ms, errors ≤ 0.1 %, budget $2400/month, ≤ 5 instances per node.