# Blue-Green Deployment

> A design pattern that deploys a release to an idle copy of production, verifies it, and switches traffic to it at once.

Record: `architecture:blue-green-deployment`
Kind: pattern
Layer: [Correctness Core](https://banes-lab.com/records/layer/correctness-core.md)
Severity: contextual
Scope: deployment, release
Canonical: https://banes-lab.com/ontology#architecture-blue-green-deployment

Listed in [Architecture principles](https://banes-lab.com/api/records/architecture.md), after [Rollback](https://banes-lab.com/records/architecture/rollback.md) and before [Canary Deployment](https://banes-lab.com/records/architecture/canary-deployment.md).

## Repair

- Refactored by: Add Blue/Green Environments
- Detected by: no parallel release environment
- Violated by: high-risk in-place production deploys
- Measured by: cutover failure rate
- Enforced by: deployment pipeline

## Requires

- [Parallel Environments](https://banes-lab.com/records/lexicon/parallel-environments.md)

## Reinforces

- [Rollback](https://banes-lab.com/records/architecture/rollback.md)
- [Availability](https://banes-lab.com/records/lexicon/availability.md)

## Enables

- [Low-Risk Cutover](https://banes-lab.com/records/lexicon/low-risk-cutover.md)

## Conflicts with

- [In-Place Mutation Only](https://banes-lab.com/records/lexicon/in-place-mutation-only.md)

## In tension with

- [Infrastructure Cost](https://banes-lab.com/records/lexicon/infrastructure-cost.md)

## Tensions

- [Blue-Green Deployment / Infrastructure Cost](https://banes-lab.com/records/tension/blue-green-deployment-infrastructure-cost.md)

## Severity

- [contextual](https://banes-lab.com/records/vocabulary/severity-contextual.md)

## Category

- [Self-Healing / Recovery / Deployment Safety](https://banes-lab.com/records/architecture-category/self-healing-recovery-deployment-safety.md)

## Linked from

- [Self-Healing / Recovery / Deployment Safety](https://banes-lab.com/ontology/principles/architecture-category-self-healing-recovery-deployment-safety.md)
- [Quality Attributes](https://banes-lab.com/ontology/lexicon/lexicon-category-quality-attributes.md)
- [Self-Healing / Recovery / Deployment Safety](https://banes-lab.com/ontology/lexicon/lexicon-category-self-healing-recovery-deployment-safety.md)
- [Severity levels](https://banes-lab.com/ontology/schema/the-vocabulary-severity.md)
- [The resolutions](https://banes-lab.com/ontology/schema/the-resolutions.md)
