AWS ECS vs. Azure Container Apps: The Real Cost of Running Containers Without Kubernetes
Compare ECS on EC2, Fargate and Azure Container Apps Consumption and Dedicated profiles, including replica floors, scaling, shared capacity and supporting services.
Containers package software consistently. They do not determine whether you pay for a virtual machine, a running task, an allocated profile, or a minimum replica. Moving a service into a container changes deployment and isolation; reducing its complete operating cost requires a separate analysis.
Amazon ECS and Azure Container Apps both let teams run containers without operating Kubernetes directly. Their cost boundaries differ substantially, particularly for shared capacity and quiet applications.
Examples use illustrative USD rates, 730 hours/month and binary memory allocation units (GiB). Free allowances, commitments and taxes are excluded. The Fargate versus ACI article examines individual job lifetimes; this article focuses on services, replicas and fleet capacity.
1. ECS and Container Apps are not compute SKUs
ECS schedules tasks, each containing one or more containers. An ECS service maintains a desired number of tasks and can integrate load balancing and scaling. Its compute can be self-managed EC2 capacity, Fargate, or other supported options.
Container Apps runs applications and jobs within an environment. Application revisions contain replicas that scale according to configured rules. Workload profiles determine whether billing is consumption-based or based on dedicated profile instances.
A task, replica, EC2 instance and workload-profile instance are not interchangeable billing units. Start with the deployment object and then identify the actual capacity being purchased.
2. ECS on EC2 versus Fargate
| Model | What you buy | What your team still manages |
|---|---|---|
| ECS on self-managed EC2 | EC2 instances and supporting resources | Host capacity, patching, placement and fleet lifecycle |
| ECS on Fargate | Allocated task CPU, memory and applicable storage | Task sizing, desired count, scaling, application and dependencies |
| ECS Managed Instances | EC2 resources plus a management fee | Workload configuration, scaling policy and utilization decisions |
AWS ECS pricing does not add an ordinary ECS orchestration fee to standard self-managed EC2 or Fargate usage. ECS Managed Instances is different: it adds a management fee to EC2 resources. Avoid turning “ECS has no additional charge” into an unconditional statement covering every mode.
On EC2, packing more tasks onto existing hosts can improve utilization without immediately changing the bill. The bill falls when you can actually remove or resize paid capacity. On Fargate, reducing allocated task resources or task runtime can affect the compute meter directly.
Fargate also constrains supported CPU-memory combinations. Excess memory demand may force a larger task allocation. Sidecars for logging, proxies or security consume resources too.
3. Container Apps Consumption versus Dedicated
In Consumption, billed allocation follows running replicas, with active/idle distinctions and an HTTP request meter. In Dedicated, billing follows allocated workload-profile instances, which can host multiple applications. See Container Apps billing.
Scale-to-zero can remove replica consumption for an eligible application, but it does not guarantee a zero environment-wide bill. Dedicated capacity, networking, observability and other features can remain. Private endpoints and certain environment features can introduce management charges even with Consumption workloads.
Dedicated is attractive when applications can share paid capacity efficiently or need a profile’s capabilities. Consumption avoids buying a whole dedicated instance for a small workload. Neither model removes the need to measure the resources allocated rather than merely used.
4. Minimum replicas are an availability purchase
A minimum replica count keeps capacity ready for latency and availability. It also creates a cost floor. More than one replica can be appropriate for resilience, but the required topology and placement must be tested.
Suppose a task allocates 0.5 vCPU and 1 GiB. Assume $0.04/vCPU-hour and $0.005/GiB-hour:
One replica-hour = (0.5 × $0.04) + (1 × $0.005) = $0.025
Two always-running replicas = 2 × 730 × $0.025 = $36.50/month
Ten such services = $365/month of modeled replica compute
This is a simplified active-rate allocation model, not an Azure idle-rate quote. It excludes balancing, networking, storage and logs. The idle rate cannot be inferred from the application’s average CPU utilization.
A service can have few requests yet remain active through background work, network traffic or revisions that retain replicas. Review every active revision and its configured floor.
5. Scaling, concurrency and startup affect the bill
ECS Service Auto Scaling changes desired task count. If tasks run on EC2, host scaling is another loop. More task replicas do not create usable host space until capacity exists.
Container Apps scaling uses rules for supported traffic and events. HTTP concurrency, queue depth, cooldowns and maximum replicas influence how long capacity runs. Scale-to-zero requires a suitable activation signal; a CPU-only signal cannot by itself discover work when no replica is running.
Suppose 60 simultaneous requests can be handled safely at 10 concurrent requests per replica. Six replicas are a starting estimate, not a guaranteed scaling result. At five requests per replica the capacity target doubles. Validate memory pressure, downstream limits and p95 latency before raising concurrency just to suppress scaling.
Image download, initialization, readiness probes and connection setup delay useful capacity. A request burst may finish before newly started replicas help. Queues can smooth demand when the business allows asynchronous completion.
6. Shared hosts and Dedicated profiles: utilization is multidimensional
Consider a hypothetical paid host with 8 vCPU and 16 GiB allocatable to applications, after overhead. Four tasks of 1 vCPU and 4 GiB consume 4 vCPU and all 16 GiB. CPU allocation is only 50%, but a fifth task of that shape cannot fit.
Shrinking each task’s memory to 2 GiB could permit eight tasks if measurements support it. That creates consolidation potential, not immediate savings. You must reduce the paid host/profile count or avoid future capacity to realize the benefit.
Separate actual application usage, declared allocation and paid capacity. A memory leak, conservative reservation or uneven placement can leave the fleet CPU-idle while memory-constrained. Scaling based only on average CPU misses that problem.
7. The supporting infrastructure remains
| Dependency | Why it can matter |
|---|---|
| Load balancer or ingress | Hours, rules, capacity and any associated addresses |
| NAT and private connectivity | Image pulls, APIs, logs and service dependencies |
| Registry | Stored images, replication, scanning/build options and transfer |
| Logs and monitoring | Ingestion, metrics, queries and retention |
| Persistent storage | Provisioned capacity, transactions, snapshots and access |
| Database and messaging | Capacity floors and per-operation amplification |
Container Apps managed ingress is not a reason to add an imaginary standalone Azure Load Balancer to every estimate. Conversely, an ECS architecture that deploys an ALB must include it. Inventory the real resources and included platform features.
Ephemeral container filesystems are not durable application storage. Persistent state needs a supported mount or external service, with its own performance, availability and backup costs.
8. Always-on services versus event-driven workers
For a continuously busy service, shared VM-backed capacity can be economical if the team can operate it safely. For irregular workers, paying only for running tasks or replicas can avoid idle host hours.
Suppose a task at the example’s $0.025/hour runs for 100 hours/month: modeled compute is $2.50, compared with $18.25 for 730 hours. But keeping $40/month of dedicated network infrastructure solely for that worker would dominate its compute bill.
Batching work can amortize startup and reduce tiny task launches. Larger batches may delay results or increase replay scope after failure. Bound retry attempts and use idempotent processing so a deployment does not create duplicate business actions.
9. Choose using equivalent service behavior
Compare the same successful throughput, p95 latency, deployment strategy, failure handling and dependency path. Include temporary overlap during rollouts; old and new tasks or revisions may coexist.
| Workload pattern | Initial candidate | Tradeoff to validate |
|---|---|---|
| Small irregular HTTP/event service | Container Apps Consumption or suitable Fargate design | Activation latency and supporting cost floor |
| Stable portfolio of similar services | ECS on EC2 or Dedicated profiles | Packing, isolation and operations |
| Team wants less host management | Fargate or supported managed capacity | Resource premium versus operational effort |
| Long-running memory-heavy service | Benchmark both allocation models | Allowed shapes and memory efficiency |
Decide whether platform operations are a shared service or a product-team responsibility. Compare that cost explicitly rather than assuming engineering time is free.
10. Keep the fleet visible after rightsizing
A successful task adjustment does not answer which team owns a shared ALB, why a subscription’s replica count grew, or whether another environment copied the old oversized configuration.
CloudVectra cost visibility supports consolidated service-cost analysis, and Cost Centers connect direct and shared costs with business owners. Budgets and anomaly detection support continuing review.
Use ECS or Container Apps metrics to establish per-task and per-replica behavior. Combine that technical evidence with billing and ownership views to explain which workloads changed and who should follow up.
Continue the compute series
- - Previous: Lambda and Azure Functions
- - Next: EKS, AKS and Kubernetes costs