Skip to content
← All posts
  • June 21, 2026
  • 7 min read
  • #aws
  • #technology

The line nobody draws: when Fargate stops being the smart default

Photo by Scott Rodgerson on Unsplash

Photo by Scott Rodgerson on Unsplash

A default that made sense at month one quietly cost $14,200/month by month eighteen.

Cold open

Priya found the Slack message at 11:40pm, three days before launch.

#platform-eng, from Dev in the CFO’s office “hey, not urgent, but our AWS forecast for next quarter is $14,200/mo on the new services cluster. that’s almost 3x what finance modeled for this stage. can someone explain the delta before the board deck goes out tuesday?”

Not urgent. Sure. It was 11:40pm.

She’d been the one who picked Fargate eighteen months ago, back when the platform team was four people and the only requirement that mattered was “get it running without anyone paging at 3am.” It had been the right call. Nobody had touched an EC2 instance, nobody had patched an AMI, and when traffic tripled during the last funding-round press cycle, the cluster just scaled. No drama. She’d been proud of that decision for a year and a half.

Now there were 47 services. And apparently a $14,200 problem.

The instinct that was wrong

Her first theory was the obvious one: somebody had over-provisioned something. A forgotten staging task running 24/7. A memory limit set to “just to be safe” and never revisited. She pulled Cost Explorer, expecting to find one or two loud offenders.

She found forty-seven quiet ones instead.

Every single service was sized about right. CPU utilization sat in a sane 50–70% band. Nothing was idling at 5%, waiting to be caught. The bill wasn’t a provisioning mistake. It was the shape of the bill that had changed, and nobody had been watching for that, because “is anything obviously wasteful” was the only question the team had ever asked.

She almost closed the laptop and wrote “will investigate further” to buy herself until morning. Instead she did the thing she should have done eighteen months earlier. She actually did the math, instead of trusting the instinct that had been right once and assuming it would stay right forever.

The math nobody had done

Fargate’s pricing is simple by design: $0.04048 per vCPU per hour, $0.004445 per GB per hour, billed per second. For a single task running 1 vCPU / 2GB, 24/7, that’s roughly $35.55 a month. Cheap. Forgettable. Forty-seven of those, lightly varied in size, and you don’t notice any one of them. You just notice the sum.

The EC2 side requires more thought, which is exactly why nobody had bothered. An m6i.large gives you 2 vCPU and 8 GiB of RAM for $0.096 per hour, or $70.08 a month on-demand. On its own, that looks worse than Fargate per task. What Fargate’s pricing model doesn’t surface anywhere in its bill is that EC2 lets you pack: memory is a hard wall (request 2GB and it’s spoken for), but CPU is shareable, billed more like a priority weight than a reserved core. Four tasks each requesting 1 vCPU can share two physical cores fine, as long as they’re not all demanding 100% at once, which is exactly why Priya’s CPU utilization number mattered: a sustained 50–70% band per task, never four simultaneous full-core spikes. Pin those same tasks at 95–100% continuously instead, and oversubscribing them onto two cores means real throttling, not a free lunch.

Run the packing forward, with that caveat attached:

  • 4 Fargate tasks at 1 vCPU / 2GB, 24/7: 4 × $35.55 = $142.20/month
  • 1 EC2 m6i.large running the same 4 tasks, leaning on CPU oversubscription at moderate utilization: $70.08/month

That’s not a rounding error. That’s a 49% gap on a single box, and it’s a gap that exists because the workloads were moderate, not maxed out. Multiply by however many boxes’ worth of services you’re running, and Priya’s $14,200 stopped being mysterious.

It wasn’t always true, though, and this is the part that almost got buried in the panic. It depended on how steadily those services were actually running.

Three workloads, three different answers

She picked three representative services from the 47 and ran the comparison properly. “Fargate is expensive” and “EC2 is cheaper” were both about to become the new instinct, and she’d just learned what blindly trusting an instinct costs.

Scenario A: the steady background service. A small internal API, 1 vCPU / 2GB, genuinely on 24/7, moderate and predictable traffic (the 50–70% CPU band, not pegged at 100%). Five of these running.

  • Fargate: 5 × $35.55 = $177.75/month
  • EC2: these five pack onto a single m6i.large with room left over, relying on the same CPU-sharing logic. Five tasks at moderate utilization rarely all spike at once. $70.08/month
  • EC2 wins, by a lot. This is the shape of workload where Fargate’s convenience tax is most visible, and where oversubscription is safest.

Scenario B: the bursty one. A report-generation service that spikes for about 3 hours a day around business hours and sits near-idle the other 21.

  • Fargate, billed per second for actual run time only: roughly 3 hrs/day × 30 days × ($0.04048 + 2×$0.004445), about $4.46/month in compute, scaling cleanly to zero the rest of the time.
  • EC2, if you provisioned a dedicated instance to be ready for the burst: you’re paying close to the full $70.08/month whether it’s busy or not, unless you’ve built real scale-to-zero automation, which is its own ongoing engineering cost.
  • Fargate wins here, decisively, and this is the case the team had in mind when they picked it in the first place. The mistake wasn’t choosing Fargate. It was assuming every workload looked like this one.

Scenario C: the one that actually built the $14,200 bill. Twenty steady-state services, each 1 vCPU / 2GB, running continuously at moderate utilization, packed efficiently.

  • Fargate: 20 × $35.55 = $711/month
  • EC2: 20 tasks pack onto 5 m6i.large instances, 4 tasks each, same oversubscription logic as Scenario A. 5 × $70.08 = $350.40/month
  • A 49% gap, recurring every month, scaling linearly with every new steady service the team shipped, as long as each new service’s CPU profile stayed in that same moderate band. A team that started shipping CPU-hungry, consistently-pegged services onto the same boxes would need to re-run this math rather than assume the ratio holds forever.

The crossover wasn’t a single number. It was a curve, and it bent on one variable: how steady the workload’s utilization actually was. High and constant utilization, packed densely, and EC2 wins, with the gap widening as you scale. Spiky, low-utilization, here-and-gone workloads, and Fargate wins, often by a wide margin, because you’re not paying for the empty hours.

What the bill had actually been hiding

The team’s mistake wasn’t choosing Fargate at four services. It was never re-asking the question as the mix of workloads changed. They’d shipped 47 services that were overwhelmingly steady-state: internal tools, always-on APIs, background processors, and kept defaulting every new one to the same launch type that made sense for the first one, which had been genuinely bursty.

Container compute is typically only 40–60% of the total bill once you count load balancers, NAT gateway data processing, and log ingestion. The EC2-versus-Fargate compute delta is real, but it isn’t the whole story of any given bill. It’s the lever that moved the most in this case, not the only lever that exists.

The decision guide that came out of it

Priya didn’t migrate all 47 services. She didn’t need to. What she built instead was a question the team now asks before every new service, not just the first one.

Use Fargate when:

  • The workload is genuinely bursty or unpredictable, where long idle stretches are the normal case, not the exception
  • The service is short-lived (CI jobs, dev/test environments, anything that doesn’t run all month)
  • Team size or ops bandwidth makes “no servers to patch” worth more than the per-task premium
  • You’re early and the service count is small enough that the absolute dollar gap doesn’t matter yet

Use EC2, or the EC2 launch type within ECS, when:

  • The workload runs at sustained, predictable utilization, the 24/7 background-service shape
  • You have enough tasks of similar size to actually pack them efficiently onto shared instances, and their CPU usage sits comfortably below 100% most of the time. Packing math assumes oversubscription headroom, not constant peak demand
  • The service count has grown past the point where “simple” and “cheap” stopped being the same word
  • You’re willing to own patching and capacity planning in exchange for a real, recurring discount, which compounds further with Reserved Instances or Savings Plans on top

The actual threshold to watch isn’t a fixed rule. Somewhere around the point where you have enough same-sized steady-state tasks to fill a box efficiently, EC2’s packing advantage starts to outweigh Fargate’s convenience premium. Below that density, or below that steadiness, Fargate’s simplicity is worth paying for. The mistake is treating either side as a permanent default instead of a question you ask again every time the shape of your workloads changes.

Numbers above use us-east-1 on-demand pricing as of June 2026, and assume CPU usage in the moderate 50–70% band per task, the regime where oversubscription is safe. Region, architecture (Graviton/ARM versus x86), actual utilization patterns, and committed-use discounts will all shift the exact crossover point. Rerun the math against current pricing pages and your own CloudWatch data before using this for a real capacity decision.