Safe Deployments

Blue-Green Deployment Checklist

Plan blue-green releases with environment parity, database compatibility, traffic switching, session behavior and tested rollback evidence. Last updated September 25, 2026.

Plan blue-green releases with environment parity, database compatibility, traffic switching, session behavior and tested rollback evidence. This reference is written for developers who need practical validation behavior, reviewable rules and safe examples rather than copied snippets with no explanation.

Recommended workflow

StepWhy it matters
Build parityKeep configuration, dependencies and infrastructure differences explicit between blue and green.
Prove compatibilityValidate database, queues, caches and external callbacks with both application versions.
Test the switchExercise routing, connection draining, sessions and DNS or load-balancer propagation.
Hold rollback capacityKeep blue healthy until green passes a defined observation window.

Starter snippet

deploy green -> verify privately -> shift traffic -> observe -> retire blue

Review checks

Common mistakes

Validation should help users correct input while protecting systems from bad data. Keep syntax checks, product policy, security review and deliverability checks separate.

Related Formalint references

Continue with Database Migration Rollback, Release Checklist For Developers, Application Health Check Guide.