ExitAWS Elastic Beanstalk: application deployment strategies1 / 9
Explanation

Batch policies trade capacity for release speed

How deployment policies and blue/green environment swaps control application rollout, capacity, health checks, and recovery from failed releases. · advanced

An Elastic Beanstalk deployment policy controls how an application version reaches the instances in an environment. For a load-balanced environment, All at once updates every instance together, interrupting service during deployment. It needs no additional instances, but a failed release can affect the entire serving fleet.

Rolling takes one batch out of service, deploys the version, and returns that batch after it passes health checks before continuing. Batch size can be a fixed instance count or a percentage. Smaller batches reduce the capacity removed at each step, but require more deployment rounds. Old and new versions serve together during the rollout, so their APIs, sessions, and data formats must remain compatible.

Rolling with additional batch first launches an extra batch, allowing the rollout to maintain its normal serving capacity while batches are updated. The extra capacity is temporary, not a separate rollback environment. Both rolling policies can leave a mixture of versions after failure; recovery can require redeploying a known-good version across the environment.

PolicyServing capacityTemporary instancesFailure exposure
All at onceInterrupted during updateNoneEntire fleet
RollingReduced by active batchNoneMixed versions possible
Rolling with additional batchNormal capacity maintainedOne extra batchMixed versions possible