Skill 3.2.2

Identifying and implementing appropriate auto scaling, load balancing, and caching solutions

Key Concepts

Target tracking is the default choice for EC2, ECS and DynamoDB scaling. Step scaling suits cases needing different responses at different alarm levels, scheduled scaling suits known peaks, and predictive scaling launches capacity ahead of daily or weekly cycles. Mixed instances policies with Spot capacity reduce cost.

Choose the load balancer by protocol: ALB for HTTP/HTTPS routing, NLB for TCP/UDP, static IPs and very high throughput. Cache at the edge with CloudFront, in the application with ElastiCache, for DynamoDB with DAX, and for API responses with API Gateway caching. Read replicas offload read traffic from relational databases.