Introduction to Deployment Strategies
Choosing and implementing deployment strategies: rolling, immutable, blue/green, canary and linear releases with Auto Scaling, CloudFormation, Elastic Beanstalk, traffic shifting services and feature flags.
- 3 lessons
- Module quiz
A deployment strategy decides how a new version replaces the old one: all at once, a few instances at a time, on new infrastructure beside the old, or by moving a small share of traffic first. Each strategy trades speed and cost against risk, rollback time and the need for capacity.
Where this module fits
The exam frequently describes a release problem, such as downtime during deployments, slow rollbacks or defects reaching all users, and asks for the strategy and service that solve it. This module compares the strategies across platforms and covers the services not handled by the CodeDeploy module: EC2 Auto Scaling instance refresh, CloudFormation update policies, Elastic Beanstalk deployment policies, and traffic shifting with Route 53, load balancers, CloudFront and feature flags.
How this module is organised
Comparing Deployment Strategies defines each strategy and its trade-offs. Deploying to EC2 Auto Scaling Groups and AWS Elastic Beanstalk explains how each strategy is implemented for instance-based applications. Shifting Traffic with DNS, Load Balancers, Edge Services and Feature Flags explains the traffic-level mechanisms used for blue/green and canary releases.