AWS Compute Choices for DevOps Workloads

Choose compute for a small web and order workload with a practical guide to EC2, ECS, Fargate, EKS, Lambda, and S3's supporting role.

published: reading time: 5 min read author: Geek Workbench updated: November 5, 2026
Quick Summary

Choose a runtime for a small web and order workload by separating compute capacity from orchestration. Compare EC2, Fargate, ECS, EKS, and Lambda, with S3 as supporting object storage.

AWS Compute Choices for DevOps Workloads

This guide is for DevOps engineers who know the basics of deploying an application and need to choose where its parts should run. The example is an order service with an HTTP API and a background worker. The API saves an order, then sends a message for the worker to process. Uploaded files and generated reports live in object storage.

Start by separating two choices that are easy to confuse: capacity is the compute that runs your process; orchestration schedules and manages your processes. AWS’s container decision guide, last updated May 16, 2025, describes EC2 and Fargate as capacity choices and ECS and EKS as orchestration choices.

A decision path for the order service

  1. Does your platform require Kubernetes APIs, operators, or Helm-based workflows? Choose EKS, then decide whether workloads should use EC2 or Fargate capacity. If not, do not add Kubernetes just to run a few containers.
  2. Does the application need host-level control or a specialized instance configuration? Use EC2 capacity with an orchestrator such as ECS or EKS. You own the host image, patching, and capacity planning.
  3. Is the application already packaged as a container, with no host access or Kubernetes requirement? ECS with Fargate is a practical starting point. AWS manages the underlying server fleet; your team still configures tasks, networking, identity, scaling, and deployments.
  4. Is a component event-driven, stateless between invocations, and bounded by the current service quotas? Consider Lambda for that component. Check duration, concurrency, package, and networking constraints for the target account and Region in the Lambda quotas reference.
  5. Where do files belong? Store uploads, exports, and build artifacts in S3. S3 is object storage, not an alternative to EC2, ECS, EKS, Fargate, or Lambda.

For this example, a small team without a Kubernetes platform can start with an HTTP service and order worker on ECS with Fargate. Keep the database separate from the compute choice, and put uploaded order files in S3. If the worker uses a queue, see the AWS SQS and SNS guide.

Compare the runtime choices

Choice for this workload Control and platform requirement Traffic or work shape What your team still operates
ECS with Fargate ECS-native task and service config; no host access. Images move, but AWS IAM and networking settings may not. Long-running API or worker tasks. Task sizing, IAM, networking, scaling, deployments, logs, and app health.
ECS with EC2 capacity Choose the host type and OS; ECS and capacity setup are AWS-specific. Steady services, host access, or instance-specific needs. Host images and patches, instance fleet, ECS services, and scaling.
EKS with EC2 or Fargate Choose it for Kubernetes APIs, Helm, or operators. Kubernetes conventions may help migration; AWS integrations still need work. Services and workers already built for Kubernetes. Cluster versions and add-ons, access policies, observability, and workload configuration. AWS manages the control plane.
Lambda Function and event-source config; runtime code may be portable, integrations and permissions are provider-specific. Bursty, short-lived event handlers. Function settings, concurrency, IAM, retries, event sources, and logs.

EC2 and Fargate are not peers to ECS and EKS. Choose a capacity layer, then choose an orchestrator if you are running containers. Fargate can provide capacity to ECS or EKS; EC2 instances can also provide capacity to either. The AWS EC2 instance specifications list different CPU, memory, storage, and networking combinations. Check the current type and its Region availability against your workload before selecting capacity.

Where S3 fits

S3 stores objects such as customer uploads, generated invoices, and build artifacts. It does not run the API or worker. Keep access scoped to the application role, decide how long each object type should remain, and check lifecycle or versioning behavior before enabling automatic deletion. For S3 in a broader data architecture, see the AWS data services guide.

Capacity planning without stale numbers

Instance availability, Lambda quotas, and measured performance depend on the Region, account, architecture, configuration, and workload. This guide avoids fixed capacity and throughput figures because they can mislead outside those conditions. The sources below were checked on November 5, 2026; before a deployment, check live quotas in the target account and Region and measure with a representative workload.

For an EC2-backed service, record CPU, memory, network, and storage use while replaying realistic order traffic. For Fargate or Lambda, include task or invocation startup, concurrency, retries, and downstream database or queue limits. Compare the same request mix and success criteria; a short synthetic test may not reveal a slow dependency or a burst limit.

A small load test can answer whether the API and worker should scale independently. If order submissions stay responsive while the worker queue grows, add worker capacity or fix the downstream bottleneck rather than scaling the API blindly. For provisioning the chosen AWS resources with reviewed infrastructure changes, see AWS CDK v2: a safe TypeScript walkthrough.

A practical first choice

For the example order service, ECS with Fargate keeps the first deployment on containers without requiring a host fleet. Choose EC2 when host-level control or instance-specific capacity justifies the patching and scaling work. Choose EKS when Kubernetes is already part of the platform requirements. Use Lambda for individual event handlers when their duration, concurrency, and integration constraints fit. Keep files in S3 whichever runtime you choose.

For each component, ask what control it needs and who will operate it. Measure the API and worker separately, then choose a different deployment model when a concrete requirement points there.

Category

Related Posts

AWS Data Services: Kinesis, S3, Glue, Athena, Redshift

Follow an order event from Kinesis Data Streams through S3 to Athena or Redshift, adding Glue when transformation or shared catalog metadata helps.

#data-engineering #aws #kinesis

Data Migration: Strategies and Patterns for Moving Data

Plan data movement between systems with CDC, staged cutovers, validation gates, and recovery paths. Learn where schema migration is a separate concern.

#data-engineering #data-migration #cdc

Serverless Data Processing: Building Elastic Pipelines

Build scalable data pipelines using serverless services. Learn how AWS Lambda, Azure Functions, and Cloud Functions integrate for cost-effective processing.

#data-engineering #serverless #lambda