Skill 1.1.9

Design auto scaling patterns for serverless and containerized workloads (for example, by using Lambda concurrency, Horizontal Pod Autoscaler, Cluster Autoscaler, Amazon ECS service auto scaling, AWS Application Auto Scaling).

Key Concepts

Lambda scales by concurrency: reserved concurrency guarantees capacity for a function and caps it to protect downstream systems; provisioned concurrency keeps initialised environments ready to remove cold starts and can itself be scaled on a schedule or by utilisation with Application Auto Scaling. AWS Application Auto Scaling is the common engine for scaling ECS services, DynamoDB capacity, Aurora replicas, SageMaker AI endpoints and Lambda provisioned concurrency with target tracking, step and scheduled policies.

ECS service auto scaling changes the desired task count (for example on CPU, memory, ALB requests per target or queue depth), and ECS capacity providers with managed scaling add EC2 instances when tasks cannot be placed. On EKS, the Horizontal Pod Autoscaler scales pods on metrics, while the Cluster Autoscaler or Karpenter adds nodes for pending pods; Karpenter selects instance types directly and consolidates underused nodes. With Fargate, only the task or pod level needs scaling.