Blue-green deployment
Blue-green deployment is a release pattern that maintains separate active and replacement environments and switches traffic between them after the replacement is validated.
Platform Engineering on Kubernetes
A blue/green deployment runs an existing version and a replacement version separately, allowing traffic to be switched between them after validating the replacement.
- How it is used
- Supports testing a replacement service alongside production before switching live traffic to it.
- How deep it goes
- Explains Kubernetes Service selectors, Knative traffic rules, and Argo Rollouts configuration, including preview and manual promotion.
- Examples
- Uses notifications-service revisions, Knative blue/green traffic percentages, and an Argo Rollouts preview route with curl output.
- What you can do after
- Apply it via Knative Serving traffic rules or an Argo Rollouts blueGreen strategy to preview and promote a service revision.
Read how Platform Engineering on Kubernetes explains blue-green deployment →
Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform
A blue-green deployment is a release pattern that maintains separate old and new infrastructure environments and switches service traffic between them.
- How it is used
- Reduces disruption and blast radius when changing high-risk, low-level infrastructure or upgrading tools with breaking changes.
- How deep it goes
- Explains configuration, dependent resources, traffic shifting, testing, migration, and cleanup, while deferring detailed rollback practices.
- Examples
- Uses global networks, clusters, premium-networked servers, databases, load balancers, Python IaC, and separate tool-state folders.
- What you can do after
- Operate/configure staged infrastructure changes, progressively route traffic, migrate stateful resources, and limit failed updates.
Grokking Software Architecture
Blue-green deployment is a release pattern that maintains separate current and replacement environments and switches traffic between them after verification.
- How it is used
- Uses parallel environments and traffic routing to deliver new versions without patching live servers.
- How deep it goes
- Walks through deployment, verification, cutover, rollback, cost, and database divergence without providing a detailed implementation.
- Examples
- Uses an Order Service cutover with a billing memory leak and potentially missing orders to illustrate rollback and data divergence.
- What you can do after
- Evaluate deployment strategies by rollback speed, infrastructure cost, version mixing, and data-divergence risk.
Read how Grokking Software Architecture explains blue-green deployment →
Kubernetes for Developers
A blue/green strategy is a rollout technique that runs old and new application versions side by side and switches traffic between them.
- How it is used
- Uses parallel versions to achieve fast cutovers, reliable rollback, and minimal user disruption during production updates.
- How deep it goes
- Explains deployment, testing, traffic switching, validation, rollback, costs, and tooling, but not detailed configuration steps.
- Examples
- Uses two Deployments behind one Service, internal-user testing, percentage-based traffic, and delayed removal of the old version.
- What you can do after
- Operate a blue-green rollout using Kubernetes constructs and choose additional traffic-splitting or pipeline tooling when needed.
Read how Kubernetes for Developers explains blue-green deployment →
GitHub Actions in Action: Continuous integration and delivery for DevOps
A red-green deployment is a deployment strategy that runs two application versions in parallel and shifts traffic incrementally from the active version to the new version without visible downtime.
- How it is used
- Deploys web applications continuously while preserving production availability during validation and release.
- How deep it goes
- Explains infrastructure, validation, telemetry, staged routing, role swapping, and cleanup through an Azure workflow.
- Examples
- Uses Azure Web App slots, GitHub Actions, release artifacts, Playwright tests, readiness polling, and 10%-then-30% traffic routing.
- What you can do after
- Operate/configure an incremental Azure deployment workflow with health checks, automated tests, traffic controls, slot swaps, and cleanup.
Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform
Blue-green deployment is a release technique that runs old and new application versions in parallel and switches traffic between them.
- How it is used
- Protects customer-facing infrastructure while risky or experimental changes are developed and tested separately.
- How deep it goes
- Defines environments, DNS switching, testing, rollback, and repeated handoffs, but does not detail implementation commands.
- Examples
- Uses blue and green production environments, www.company.com DNS routing, and recurring environment handoffs.
- What you can do after
- Operate/configure reversible production rollouts by testing a parallel environment and switching DNS with a rollback path.
Also covered in
- Think Like a CTO
- LLM Customization and Fine-TuningIn early access (MEAP)
- Microsoft Azure in Action
- gRPC Microservices in Go
- Context EngineeringIn early access (MEAP)
- Designing Deep Learning Systems: A guide for software engineers
- Kubernetes in Action, Second Edition
What to know first
- deployment pipelineA deployment pipeline is a repeatable sequence of stages that builds, tests or validates, packages, and delivers software changes toward release or deployment.
- serverA server is a computer system or software process that provides data, resources, or services to other systems, typically by responding to requests.
- integration testAn integration test evaluates whether multiple software components, or a component and an external dependency, interact and behave correctly together.
- language modelA language model is a computational model that represents patterns in linguistic sequences to assign probabilities, predict, generate, or evaluate language.
Related concepts
- rolling updatekind of · A rolling update is a deployment or upgrade technique that updates or replaces instances or resources incrementally rather than all at once, allowing the rest of the system to continue operating during the change.
- canary deploymentalternative to · A canary deployment is a release strategy that exposes a change to a limited portion of users, traffic, or infrastructure before expanding it more broadly.
- load balanceruses · A load balancer is a hardware or software component that distributes incoming network traffic or requests among multiple servers, service instances, or endpoints.
Questions about blue-green deployment
What is blue-green deployment?
Blue-green deployment is a release pattern that maintains separate active and replacement environments and switches traffic between them after the replacement is validated.
Which Manning books explain blue-green deployment?
Platform Engineering on Kubernetes, Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform, Grokking Software Architecture, Kubernetes for Developers, GitHub Actions in Action: Continuous integration and delivery for DevOps and Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform.
What should I know before learning blue-green deployment?
Manning books that teach blue-green deployment usually introduce deployment pipeline, server, integration test and language model first.
What is the difference between blue-green deployment and checkpoint reload?
Blue-green deployment is a release pattern that maintains separate active and replacement environments and switches traffic between them after the replacement is validated. A deployment approach that restores a model by loading a saved checkpoint.
What is blue-green deployment a kind of?
Blue-green deployment is a kind of rolling update. A rolling update is a deployment or upgrade technique that updates or replaces instances or resources incrementally rather than all at once, allowing the rest of the system to continue operating during the change.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.





