Skip to the guide

Designing for cost

AdvancedPattern5 pages

A family decides to spend less, and the first idea is cancelling a $10 streaming subscription. Then they sort a year's bank statement by size and find the car's fuel is half of everything going out. Driving less, or a smaller car, saves more than every subscription together. The car lease is paid whether they drive or not, while a taxi is paid per trip. And one cost grows quietly all month, a tap left running, until the water bill arrives.

The statement sorted by size is your cloud bill, line by line. The subscriptions are always-on servers, the fuel is the bytes each view sends, and the smaller car is a smaller image. The lease is committed capacity, cheaper per hour for the steady base, while taxis are on-demand machines that autoscaling adds for the peaks. The tap is a debug log or a runaway job nobody watches. Staff rounds ask "what does this cost to run?", and the interviewer listens for the biggest line priced per unit of traffic (Mid-level, senior and staff answers). The move: price the design per unit of traffic, find the biggest line, and cut it without breaking a requirement.