What is blue/green deployment?
BeginnerConceptDeployment strategies
Answer
In blue/green deployment you run two identical environments:
- Blue — the current live version.
- Green — the new version.
You deploy and test the new version on green while users still use blue. When green is ready, you switch all traffic to it (for example by changing the load balancer). If something goes wrong, you switch back to blue instantly.
- Pro: instant switch and instant rollback.
- Con: needs double the infrastructure during the release.