Cloud cost is an architecture problem

Most of a cloud bill is settled when a system is designed, long before anyone reviews the invoice. Discounts and rightsizing trim the edges, while the shape of the bill follows from how services talk, what keeps running and what is retained.

By Nabil Ahmed7 minute read

The lunar surface near 31°S, 160°E, lit by a low Sun with night falling across one side.
The Moon near 31°S, 160°E. Rendered by Farside from NASA Lunar Reconnaissance Orbiter elevation data.

When a cloud bill grows faster than the business, the first response is usually a financial one. Someone negotiates a commitment discount, someone else runs a rightsizing report, and a dashboard appears that shows spend by team. Each step is sensible and saves money once, but the bill soon resumes its climb.

That happens because the bill is mostly a consequence of design. How many copies of a service keep running when there is no traffic, how much data crosses a boundary the provider charges for, and how long each log line is kept and in which class of storage were settled at build time, usually without any discussion of cost. Finance can see the result on the invoice, but only engineering can change what produces it.

We think cloud cost belongs in architecture reviews with the same standing as reliability and security, and that the figure executives should watch is cost per unit of business work rather than the total. The rest of this piece sets out the reasons and what to ask your teams for.

In brief

  • The largest drivers of a cloud bill are design decisions about what runs continuously and how data moves between components, along with what is retained.
  • Purchasing levers such as committed-use discounts lower the price of what you run but leave the amount you run unchanged.
  • Unit cost, the cost of running a service divided by a measure of business work such as orders or claims processed, shows whether spending is healthy when the total cannot.
  • Cost needs an owner who can change the design, which means the engineering team that builds the service, working with finance as a partner.
  • A cost review belongs at design time and after each significant change, because retrofitting a cheaper architecture costs far more than choosing one.

Why the invoice is the wrong place to start

A data center is bought in advance, so capacity is a capital decision that a few people make every few years, and once the hardware is installed an inefficient application costs nothing extra until the next purchase. The cloud reverses this, because every engineer who merges a change is in effect making a purchase with no purchase order raised.

FinOps is the practice of bringing financial accountability to that variable spend, so that engineering and finance make cost decisions together with the business, and it is a useful discipline. Many organizations, however, run it as a reporting function whose work is tagging resources and allocating the spend, with a chart sent out each month. Reporting is necessary, but the team receiving the chart also needs to know which design decision produced the number, and it needs the mandate and time to revisit it.

There are three kinds of lever, and they behave differently.

Lever Examples What it changes Limit
Rate Committed-use discounts, reserved capacity, negotiated pricing, spot or preemptible capacity The price of each unit consumed You still consume the same amount, and commitments lock in the current design
Usage Turning off idle resources, rightsizing, autoscaling, storage tiering The number of units consumed, within the current design Bounded by what the design allows
Architecture Changing how components communicate, what is stateful, what is retained, which managed services are used The shape of consumption itself Costs engineering time and carries delivery risk

Most cost programs work the first two rows and stop, although the bill is actually decided in the third.

Where design decides the bill

A handful of design choices account for most surprises, and none of them looks like a cost decision when it is made.

What runs when nobody is using it. A service sized for its peak hour and left at that size all day pays for the peak around the clock, as does every non-production environment that keeps running through nights and weekends. Designs that scale with demand change this, as do environments that are created when needed and removed afterward. Both depend on platform engineering that makes an environment cheap to create, since teams are reluctant to delete something that takes a week to rebuild.

How data moves between components. The major providers charge for data leaving their network to the internet and generally for traffic between regions, and some also charge for traffic between availability zones in the same region, so a design in which services exchange many small calls across those boundaries pays on every call. Managed network address translation gateways typically charge for each gigabyte that passes through them, which means routing bulk traffic to storage or another cloud service through one can cost more than the compute that sent it. Providers often offer private endpoints to their own services for exactly this case.

What is kept, and where. Logs and metrics accumulate over time, along with backups and old data. Ingesting every debug line into a searchable log platform and holding it indefinitely is a design choice with a monthly price, as is keeping years of rarely read records in the most expensive storage class, so retention periods and storage tiers should be treated as architecture decisions and written down.

Which managed services are chosen. A managed service priced per request can be very cheap at low volume but expensive at high, steady volume, where reserved compute would usually cost less, while the reverse holds for spiky workloads. The right choice depends on a traffic profile that changes as a product grows. AI features raise a newer version of the same question, covered in what an AI feature actually costs to run.

The number to watch: unit cost

Total spend tells an executive very little, since a bill that doubles while orders triple is good news and a flat bill while volume halves is bad news, and only unit cost tells the two apart.

Unit cost is the cost of running a service divided by a measure of the business work it does, such as cost per order, per claim processed, per active customer or per shipment tracked. It can be calculated once spend is allocated to services (which depends on consistent tagging and account structure) and the business supplies a volume figure. Shared costs such as networking and the platform team need an allocation rule that is agreed and kept stable, even if it is rough.

With unit cost in hand you can see whether it is falling as volume grows, which it should where fixed costs are spread over more work, and whether a specific release moved it, and you can compare it with the revenue or margin on the same unit.

A regional retailer

Take a regional retailer that runs its online ordering platform on one of the major clouds. Order volume has grown steadily and the cloud bill about twice as fast. Last year's commitment discount, together with a rightsizing exercise that trimmed some instances, bent the curve only briefly.

Suppose an architecture review of the bill, service by service, finds four design causes.

First, the order service calls the pricing and inventory services, along with the customer service, many times for each page view, and its instances are spread across three zones on a provider that charges for traffic between zones, so each call is small but there are a great many of them.

Second, nightly exports from the order database to object storage travel through a network address translation gateway because the storage endpoint was never configured privately, and the gateway's data processing charge is now one of the largest lines in the networking bill.

Third, seven long-lived environments, each a full copy of production, run around the clock even though four of them are used by one team during office hours.

Fourth, application logs are written at debug level in production and kept in a searchable platform for a year, because a retention policy was never set.

Each fix is a design change with an owner and a test. The team batches the calls and caches reference data that rarely changes, prefers same-zone routing where the platform supports it, and adds a private endpoint for the storage traffic. Four of the fixed environments are replaced with ones created on demand from infrastructure code, and the rest are scheduled to stop outside working hours. Log levels and retention are set by purpose, with short retention for searchable debug logs and cheap archival storage for audit records that must be kept.

Progress is measured as cost per order, tracked weekly against a target agreed before the work starts. The commitment should be renewed only after the usage pattern has changed, and sized to the new baseline, because committing first would have locked the waste in.

Putting cost into how you design

The practical change is modest and does not require a new department.

Add cost to the design review. Each significant design document should carry a short section giving the expected monthly cost at current and projected volume, along with the main drivers and the alternatives considered. A rough estimate is enough, since its value is that the discussion happens while changing course is cheap. Recording the choice in an architecture decision record means the reasoning can still be found when someone questions the bill later.

Give teams their own numbers. Allocate spend by account, project or tag, enforced by the platform, so that each team sees the spend and unit cost of its own services. A landing zone that sets the account structure and mandatory tags at the start makes this far easier than retrofitting them.

Treat cost and reliability together. Running in several zones, keeping spare capacity and holding longer backups all cost money and all buy resilience, so cutting them blindly trades a smaller bill for a larger incident. When the reliability target is explicit, the spending that supports it can be defended and anything beyond it can be cut, which is why our cloud operations work treats reliability and cost as one conversation.

The limits of this argument

Not every saving justifies a redesign. Engineering time is expensive and a rewrite carries risk, so for a small or declining workload a rate discount and a quick tidy-up are usually the right answer, and the case for redesign is strongest for the few services that dominate the bill and are still growing.

Once the architecture is sound, rate levers also matter more than this piece might suggest, since a stable, well-shaped workload is exactly the kind to commit to.

Some cost is also the price of speed. A team that picks a per-request managed service to launch quickly has made a reasonable trade, and the mistake comes only if that choice is not revisited once volume has made it a poor one.

What to ask on Monday

Six questions to put to the head of engineering or the cloud lead:

  • What is the cost per unit of business work for our five most expensive services, and which way has it moved over the past year?
  • Which three design decisions drive the most spend, and when did anyone last review them?
  • What share of the bill goes on data transfer and network processing, and do we know which flows cause it?
  • How many of our non-production environments run around the clock, and who uses each of them?
  • How long do we retain logs and backups, and who chose those periods?
  • Does a new design get a cost estimate before it is built, and where is it recorded?

If these cannot be answered within a week, the first piece of work is visibility, meaning allocation, tagging and unit metrics. If they can, the next step is a workload-level architecture review of the top two or three services, with cost as a criterion alongside reliability and security. Which workloads belong where is a cloud strategy question, one level above that review.

Related services

Start a conversation.

A short paragraph is enough. A principal reads every message and replies within one working day.

Or email hello@farside.works. We use what you send only to reply. Privacy