Deployment strategies control how new code is rolled out with minimal downtime and risk. Blue-green: two identical environments (blue = current, green = new); switch traffic in one go. Rolling: replace instances one (or a few) at a time while the rest serve traffic.
| Strategy | How | Pros / cons |
|---|---|---|
| Blue-green | Deploy to idle env; switch traffic | Fast rollback (switch back); double capacity during deploy |
| Rolling | Replace instances gradually | No double capacity; mixed versions during deploy |
| Canary | Send small % traffic to new version | Low-risk validation; more complex routing |
Use blue-green when you want instant switch and easy rollback. Use rolling when you want to avoid running two full environments. Use canary to validate new version with a fraction of traffic before full rollout.