Blue-Green Deployment With NGINX
Blue-green deployment keeps two environments running. At any time, one environment serves production traffic and the other waits for the next release. For a runnable lab, see the blue-green-simulation directory in the IaC repository. Version 1 demonstrates a manual NGINX upstream switch. Version 2 adds weighted routing and named containers. The switch is the critical moment. How it happens determines whether the pattern is fast rollback or just extra complexity. The NGINX Upstream Switch The simplest blue-green switch is an NGINX upstream block with one active server and one standby: ...