EC2 vs Fargate

Compute choice.

Overview

EC2 and Fargate are the two main AWS compute choices for containerised workloads. EC2 gives maximum control (instance type selection, kernel access, custom AMIs) at the cost of operating the instance fleet; Fargate gives managed serverless containers (no instance management, per-second billing) at higher per-vCPU cost. The right answer depends on whether ops control or operational simplicity matters more.

The approach

Workload-driven choice with per-workload cost analysis, per-team operational fit considered, documented rationale per service. The discipline is making the compute choice once with a written reason rather than mixing both compute layers across services that share patterns.

Why this compounds

The right compute choice compounds across years. Wrong-compute workloads pay cost or ops penalties indefinitely; right-compute workloads pay neither. Cross-service tooling (deploy, observability, secrets) gets built once per compute layer and reused. By year two the compute choice is automatic per service.