Your Availability Design Is Sending the Bill Somewhere You Are Not Looking

Where the meter actually sits

The claim that transfer is a rounding error rests on a picture of the bill in which traffic is priced like an internet connection: a single line, charged per gigabyte, that goes up when customers download things. That picture is accurate for one path and misleading for most of the others. Google's network pricing page, in the copy used for this piece, divides traffic by where it lands. Traffic between two resources in the same zone over internal addresses carries no charge. Traffic between zones in the same region is metered. Traffic between regions is metered at rates that depend on the pair of locations, and traffic leaving the provider's network is priced as internet egress. The charge follows the path the bytes take, not the product that sent them.

The page also makes a point that is easy to skim past. Inbound data into a Google Cloud resource is listed as free, but load balancers, Cloud NAT and protocol forwarding are listed as services that carry their own processing charges. Responses to requests count as outbound transfer. So a request that enters the network without charge can still pay at the gateway that accepted it and again as egress on the way back. The meter is reading boundaries, and every boundary a design adds, whether a zone, a region, a gateway or a managed proxy, is a new place where bytes can be counted.

AWS's pricing pages show the same separation from another angle. The S3 pricing page lists storage, requests and retrieval, data transfer, replication, and several feature charges as distinct cost components, and it states that there is no minimum charge. The EC2 page prices compute by purchase option, with savings plans and spot discounts described against On-Demand rates. Neither page treats transfer as a footnote to storage or compute. They present it as a parallel meter that accrues on its own terms, and a bill review that looks only at the largest two lines will miss it.

The internal paths that get billed

The most consequential internal path is traffic between zones in the same region. The Google page lists a per-GiB charge for this path, and the copy used here gave a rate of one cent per GiB for it, in each case as stated on that page at the time it was captured. The same page says that price is the same whether the two instances share a subnet, sit in different subnets, or belong to different networks. That detail matters for the designer's intuition. Segmenting a network into tiers, separating workloads into VPCs or adding peering does not change the transfer charge. Only placement changes it, because the boundary being billed is the zone.

The page also notes that all traffic to and from external IPv4 addresses leaves the zone, whatever the destination. This is the trap that catches services which call each other through public endpoints, often because a load balancer, gateway or certificate arrangement made the public address the easiest one to use. A peer sitting in the next rack, reached by its public name, pays the path charge of a zone exit even though no user is involved. The design looks internal on the architecture diagram and external on the invoice.

Gateways and managed services add a second layer. Processing charges on load balancers and NAT, replication charges on storage, and per-request ingest charges on operations such as PUT, COPY and lifecycle transitions, which the S3 page lists, all turn traffic into a count of operations as well as bytes. A service that writes many small objects, or that sends many small requests through a processing gateway, can accumulate a charge that has little to do with the volume it moves. The mechanism is simple. The meter counts crossings and calls, and small messages make calls cheap to send but expensive to count.

The resilience patterns that generate the charge

Replicated stores are the clearest case. A database or consensus-based store spread across three zones for availability must ship each write to replicas in other zones before acknowledging it, or at least to a quorum of them. Each of those copies crosses a zone boundary. The transfer generated is a function of write volume times the number of remote replicas, so the more zones the design uses to survive a zone failure, the more of the write path becomes billed traffic. The condition under which this bites hardest is high write rates with small records, where protocol overhead and request counts add to the byte cost. A read-heavy store with large, infrequent writes may barely register it.

Service graphs produce a different pattern. When a load balancer spreads calls across instances in several zones without regard to where the caller sits, the share of calls that cross a zone boundary depends on how the instances are spread. If traffic is distributed evenly over N zones with no affinity, the fraction of calls crossing zones works out to roughly (N-1)/N. That is reasoning from the spread, not a measurement of any system. Retries and fan-out multiply the effect, because a call that fails and is retried in another zone pays the path twice, and a request that fans out to five downstream services pays for each hop. Health checks and sidecar proxies add a steady background of traffic that the application team may never have counted.

Caches are usually sold as a way to cut the cost of the store behind them, and sometimes they are. The argument fails when the cache sits in one zone and the store in another, or when a cache is deployed in every zone and each copy fills and invalidates separately. A hit saves a read from the store, but the fill, the miss path and the invalidation messages still cross boundaries. Whether the cache reduces transfer or increases it depends on the hit ratio and on where the cache lives relative to both the callers and the store. The common advice that caching always cuts transfer costs is overrated. It is true under a specific placement and hit profile that is seldom stated when the advice is given.

What to measure first

Start by breaking the bill down by usage type and by path, before changing any architecture. Both providers' cost reports separate transfer, requests, replication and processing into distinct lines, and the point of the first pass is to find the inter-zone and gateway lines and see how large they are relative to the rest. The total is not useful at this stage. A single transfer figure cannot tell you which service pair is responsible for it, and that is the question that matters for every later decision.

Next, attribute bytes and requests to source and destination zone. Flow logging, which the major providers offer, can be aggregated by zone pair and by service. The output should show, for each service pair, the share of traffic that crosses a zone boundary, the share that goes through a managed gateway, and the share that uses public addresses for internal calls. Alongside bytes, count requests and objects. Small-object churn, retry volume and replication frequency often explain more of the charge than the bulk data does, and they will not appear if the analysis looks only at gigabytes.

Only then consider changes, and be honest about their cost. Zone-aware routing can keep some calls within a zone, and the Google page's distinction between internal and external addresses shows that removing public-address detours is often the cheapest fix. But affinity gives up some failover, and a service that refuses to call a healthy instance in another zone during a partial outage has traded a transfer charge for an availability risk. Removing zone spread to save money reverses the reason the design was built. The engineering time needed to build and maintain routing rules is also a real cost, and at small scale it can exceed the transfer it removes. Measuring first tells you whether that trade is worth making, and for most resilient designs the answer will be found in the cross-zone and gateway lines, not in the egress line everyone expected.