Skip to content

Case study 14 · Data and infrastructure

Cutting an AWS bill from $24,000 to $2,000 a month

A national identity authority's AWS bill was inflated by three different kinds of problem, and none of them raised an error. Nothing was decommissioned.

EngagementFull-stack engineer · national identity authority, West Africa · 2024 · 6 months · direct clientPublished

Monthly spend: $24,000 → $2,000

The story in 5 steps

Stack

  • AWS
  • S3
  • Node.js

01 · Context

The first thing I did on the project was read the AWS bill, which came to $24,000 a month.

Nothing was decommissioned, and the product served the same users doing the same work.
Flexera's 2026 survey of 753 organizations estimates that 29% of cloud spend is wasted, and 85% of those organizations name managing cloud spend as a top challenge.

02 · Could not change

Nothing in the system was broken in a way anyone would notice.

Cloud waste is hard to catch, and it persists, because it breaks nothing.
Until someone sets up a budget alarm, the only way to find this kind of waste is to go and look at the bill on purpose.

03 · What I did

Over-provisioning. I found the sizing problem by comparing provisioned capacity with observed use.

Infinite loopsI found the fault by looking for cost that didn't track traffic.
Uploads routed through the backendI found the architectural cause by reading the code.
Routing uploads through the backend tied instance memory to the number of concurrent uploads, sent every byte across the network twice, and capped throughput at what the application server could handle, although S3 is designed to absorb far more.

04 · Result

Monthly spend: $24,000 → $2,000

Against what the workload actually needed, the bill was about eight times too large, and the final bill came in lower still, so the cut from $24,000 to $2,000 is twelvefold
Each of the three causes was found by a different method, and none of them raised an error

05 · Differently

The bill should not have been the developer's discovery.

Related services

The services that draw on this work.

Related writing

Posts that came out of this project.

Case study 14

Working on a similar problem? We reply within one business day.

The first call takes 30 minutes, and you’re under no obligation.

Tell us about your projectcontact@microtech.consulting