liveBook · Manning

Blue-green deployment

As explained in 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.

Blue-green deployment, also called red-green deployment, runs two application versions in parallel and shifts production traffic from the active version to the new version without visible downtime. A load balancer or routing layer directs traffic between the environments. section 9.3.7

A practical rollout follows these stages:

  • Deploy the new version to the inactive server or deployment slot while production traffic remains on the active version. section 9.3.7
  • Check readiness through health endpoints, then run automated tests against the new deployment. section 9.4
  • Route a small percentage of traffic to the new version, monitor application telemetry, and increase the percentage through controlled stages. section 9.3.7

Azure Web App rollout

A GitHub Actions workflow triggers when a release is published, retrieves versioned release artifacts, authenticates to Azure, creates a staging slot, deploys the application, waits for /health/ready to report Healthy, and runs Playwright tests. Subsequent jobs route 10% and then 30% of traffic to the slot before swapping it into production.

How GitHub Actions in Action: Continuous integration and delivery for DevOps covers it

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 it assumes
Assumes a web application, parallel hosting environments, traffic control, versioned artifacts, and automated deployment workflow capability.
What you can do after
Operate/configure an incremental Azure deployment workflow with health checks, automated tests, traffic controls, slot swaps, and cleanup.
How it connects
Connects continuous delivery with deployment slots, load balancing, health endpoints, application telemetry, automated testing, and release artifacts.

Also explained in

Compare how 5 books explain blue-green deployment →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of GitHub Actions in Action: Continuous integration and delivery for DevOps. The section links point to the parts of the book it draws on.