The unit of replacement determines capacity
How switching between complete environments differs from incrementally replacing a running fleet in capacity needs, version coexistence, and rollback behavior. · advanced
Blue-green deployment prepares a complete replacement application environment while the current environment remains available. Rolling deployment changes the serving fleet in batches, either updating existing members or replacing them. The distinction is the unit of change: a complete environment versus part of a fleet.
For equally sized application environments, blue-green temporarily needs roughly two fleets' worth of application capacity. This does not mean every dependency must be duplicated. Rolling deployment can use less extra capacity, but it must either remove capacity during each batch or add surge capacity before removing old members.
For example, with twelve equal-capacity instances and batches of three, removing a batch first leaves nine serving instances during replacement. Starting three replacements first temporarily requires fifteen provisioned instances. Neither arrangement guarantees enough ready capacity for demand: startup time, health checks, placement constraints, and spare capacity still matter.
| Capacity choice | Blue-green | Rolling |
|---|---|---|
| Replacement unit | Complete environment | Fleet batch |
| Temporary capacity | Two environments overlap | Batch-sized surge or reduction |
| Demand requirement | Replacement handles full demand | Remaining ready members handle demand |