Copyright (c) 2026 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

3.1.2.4. Container Platforms for Scalability

3.1.2.4. Container Platforms for Scalability

Containers provide consistent packaging and fast startup — critical for scaling workloads quickly in response to demand.

ECS vs. EKS selection:
FactorECSEKS
ComplexityLower — AWS-native, simplerHigher — full Kubernetes API
PortabilityAWS-onlyRuns anywhere Kubernetes runs
EcosystemAWS integrationsMassive Kubernetes ecosystem (Helm, operators)
Launch typeFargate or EC2Fargate or EC2 (managed node groups)
Best forTeams new to containers, AWS-native appsTeams with K8s expertise, multi-cloud strategy

ECS scaling: Application Auto Scaling adjusts the desired count of ECS tasks based on CloudWatch metrics (CPU, memory, ALBRequestCountPerTarget). With Fargate, no instance scaling needed — just task scaling.

EKS scaling:
  • Horizontal Pod Autoscaler (HPA): Scales pod replicas based on metrics
  • Cluster Autoscaler: Adds/removes EC2 nodes when pods can't be scheduled
  • Karpenter: AWS-native node provisioning — faster and more efficient than Cluster Autoscaler
# ECS Service Auto Scaling
ScalableTarget:
  Type: AWS::ApplicationAutoScaling::ScalableTarget
  Properties:
    ServiceNamespace: ecs
    ScalableDimension: ecs:service:DesiredCount
    MinCapacity: 2
    MaxCapacity: 50
ScalingPolicy:
  Type: AWS::ApplicationAutoScaling::ScalingPolicy
  Properties:
    PolicyType: TargetTrackingScaling
    TargetTrackingScalingPolicyConfiguration:
      TargetValue: 75
      PredefinedMetricSpecification:
        PredefinedMetricType: ECSServiceAverageCPUUtilization

Exam Trap: ECS tasks on Fargate have fixed CPU/memory combinations (e.g., 0.5 vCPU / 1 GB, 1 vCPU / 2-8 GB). You can't specify arbitrary values. If a question specifies a memory requirement that doesn't match a Fargate combination, the answer might involve EC2 launch type instead.

Alvin Varughese
Written byAlvin Varughese•Founder•15 professional certifications