How to reduce cloud costs without losing recoverability
Cloud bills tend to grow quietly. A database sized for a launch that never needed it, a load balancer in front of a single server, network gateways that bill every hour whether traffic flows or not. None of these is a mistake on its own, but together they can make infrastructure cost far more than the product needs.
The tempting response is to pick cheaper servers. That rarely works on its own, and it can be dangerous: cost cuts made without measurement are the ones that remove a backup, a failover path or the memory headroom that kept the system stable. This guide describes the order we work in, so that savings come from understanding the system, not from guessing.
1. Start with read-only discovery
Before changing anything, look. Use read-only access to the billing console, the resource inventory and the monitoring data. The aim is a clear picture of what exists, what it costs and how hard it is actually working.
Read-only matters. Discovery should never be the moment something gets switched off by accident, and it lets the people who own the account review what was looked at.
- The bill broken down by service and by resource, over several months
- An inventory of compute, databases, storage, network services and idle resources
- Real utilisation: CPU, memory, connections, storage growth and data transfer
- Existing backups, how long they are kept, and whether anyone has restored one
- What the system must keep doing: uptime expectations, data retention, legal pages
2. Find the dominant cost line
In most bills a small number of line items account for most of the spend. Often it is a managed database cluster, an always-on network service or compute sized for peak load around the clock. Work on the biggest line first; shaving small items while the largest one is untouched produces effort without results.
For the dominant item, ask a plain question: is this resource doing work proportional to what it costs? A database running at low average CPU with plenty of free memory is a candidate for a smaller or different setup. One that is regularly saturated is not.
3. Right-size against measured utilisation
Right-sizing means choosing capacity from evidence, not from the size someone picked at launch. Look at average and peak usage over a representative period, including month-end or campaign spikes, and size for the real peak with headroom.
Treat new sizes as starting points to be confirmed under load, not final answers. Write down the scale-up path in advance, so that if usage grows the next step is already agreed.
- Size for observed peaks plus headroom, not for averages
- Keep memory headroom: running out of memory fails harder than running out of CPU
- Load-test the new sizes before cutover where the risk justifies it
- Document the scale-up path and the signal that triggers it
4. Choose the right kind of instance
Burstable instances are economical for workloads that idle most of the time and spike occasionally, such as an application server with uneven traffic. They accumulate credits while quiet and spend them under load. Sustained heavy load drains those credits and performance drops, so they suit some roles and not others.
Fixed-performance instances cost more per hour but behave predictably. Databases and anything with steady load usually belong here. ARM-based instances are often cheaper for the same capacity; most modern runtimes and container images support them, but check every dependency and build images for the right architecture before moving.
5. Remove always-on services the architecture doesn't need
Some network services bill every hour regardless of traffic. Managed NAT gateways, load balancers in front of a single instance, and private endpoints that are used once a month are common examples. Where the architecture allows, they can be replaced with simpler alternatives or switched on only when needed.
Each removal is a trade-off, so record it. A NAT instance is cheaper than a managed gateway but is something you now operate. Removing a load balancer is fine for one server, but brings it back the moment you need two. Turning resources off overnight saves money, but anything public that depends on them goes offline too.
- List every always-on network service and what depends on it
- Prefer free gateway endpoints for traffic to object storage where available
- Use break-glass access that is enabled when needed, rather than always-on endpoints
- Check that scheduled shutdowns don't take customer-facing pages offline
6. Fit monitoring to the size of the system
Detailed managed monitoring is valuable for large estates and can be expensive for small ones. A small system may be better served by a focused health check that watches what actually breaks: disk space, memory, container health, response time, backup age and CPU credit balance on burstable instances.
Whatever you use, make sure alerts reach a person, and that something outside the system notices if the monitoring itself stops. A watcher that fails silently is worse than none, because it creates false confidence.
7. Put guardrails on spend
Budgets and anomaly alerts are cheap and catch the expensive surprises: a runaway job, an unexpected data transfer, a resource someone forgot. Set them up before the migration, not after.
Hold off on long-term commitments such as savings plans or reserved capacity until the bill has settled after the changes. Committing early locks in the old shape of the system, or an estimate of the new one that hasn't been proven yet.
8. Protect data and recoverability first
Our priority order is data, then recoverability, then cost. A cheaper system that cannot be restored is not a saving. Before cutover, verify that every record arrived, and make the backup and restore process stronger than it was, not weaker.
There are also times not to cut. If a cheaper option means running staging on a host that is already short of memory, or packing a database onto a server shared with other critical services, the risk to everything else on that host outweighs the saving.
- Verify data parity after migration, record by record or with exact counts
- Keep frequent backups in storage that can't be deleted or altered for a set period
- Restore backups automatically on a schedule and check the result
- Keep development and production separated, with no path from one to the other
- Write down every accepted trade-off, such as a single-zone database
Common questions
Is reducing cloud cost just a matter of picking smaller servers?
No. The largest savings usually come from understanding what each resource does: over-provisioned managed services, always-on network components and idle resources. Smaller servers chosen without measurement often trade a lower bill for an outage.
Does moving away from managed services always save money?
Not always. A managed service includes work your team would otherwise do, such as patching, failover and backups. Self-hosting can be cheaper, but only if you also take on and test those responsibilities.
When should we buy savings plans or reserved instances?
After the bill has stabilised following any architecture changes. Committing earlier locks in a shape of infrastructure you may be about to change.
Related service
Build products customers can rely on.
Product EngineeringMore guides
- 01 — BUILD
React Native or Flutter: how to choose for your product's app
React Native vs Flutter for your product's mobile app: team skills, code sharing with web, UI approach, native SDKs, hiring, maintenance and store release.
- 01 — BUILD
Managed or self-hosted database: a per-workload decision
How to choose between a managed and a self-hosted database: cost, operational effort, failover, backups and team skills, decided per workload.
- 01 — BUILD
Why a stopped AWS database comes back on, and how to retire it properly
Stopped RDS, Aurora and DocumentDB clusters restart on their own after seven days. How to retire an old database safely, and find the other leftover costs.
- 01 — BUILD
Moving a live app to new infrastructure: a cutover checklist
How to move a live application and its data to new infrastructure without losing anything: discovery, rehearsal, verification, cutover and rollback.
- 01 — BUILD
Self-hosted video or a video API: choosing for a telehealth or consultation app
Building video consultations into your app? Compare a hosted video API with self-hosted WebRTC: cost, reliability, networks, privacy and team effort.
- 01 — BUILD
How to design role-based access for operations software
How to design role-based access control for operations software: permissions, deny by default, server-side checks, custom roles, scoping and audit.
- 01 — BUILD
Rolling out access control on a live system: log mode first
How to introduce role-based access control into a live business system without disruption: catalogue routes, map roles, run in log mode, then enforce.
