Skip to main content
← CONCEPTS / DEVOPS & PLATFORM ENGINEERING
An end-to-end domain learning journey

Progressive Delivery: Blue-Green, Canary
Deployments & Feature Toggles.

Progressive delivery decouples code deployment from feature release using Blue-Green instant cutovers, SLO-gated Canary traffic shifting (1% -> 10% -> 50% -> 100%), and runtime Feature Toggles on a single trunk.
Start the journey7 sections· Last modified Nov 16, 2026
FIRST PRINCIPLES. PRODUCTION SCALE.
The idea to keep with you

If latency budgets leave no room for synchronous retries, Canary Deployments &, pair backward-compatible expand-contract DB migrations with automated Canary SLO rollbacks and Feature Toggles so bad releases impact < 1% of traffic and revert in seconds.

TL;DR30-second simplified summary
▾

Core Mechanics: Progressive delivery separates deploying a binary from exposing a feature to 100% of users using three complementary mechanisms: Blue-Green (two identical environments with an instant load-balancer cutover).

Visual & Structural Flow: Depicts Automated SLO-Gated Canary Progression & Rollback (CANARY 1% -> 10% -> PROMOTE 50% -> 100% -> AUTO ROLLBACK); Argo Rollouts + Envoy + Prometheus Auto-Rollback (Argo Rollouts -> Envoy Ingress -> Canary v2 (5%) -> Prometheus).

Trade-Offs & Production: Each deployment strategy trades compute overhead against rollback speed and mixed-version exposure. Argo Rollouts shifts 5% of Envoy ingress traffic to the v2 canary pods, waits 10 minutes, and runs an AnalysisRun comparing canary vs. baseline p99 latency and 5xx rate.

Failure Modes & Application: Explore zero-downtime canary rollbacks, unbiased canary evaluation, and DB compatibility.

Full walkthrough · 7 stages
01
STAGE 01 · WHAT IT ISL4 · FUNDAMENTALS

What is Progressive Delivery.

Why this matters: The mechanism: understand how Progressive Delivery works from first principles.

Think of What is Progressive Delivery as the intuition layer for Progressive Delivery: Blue-Green, Canary Deployments & Feature Toggles: The mechanism: understand how Progressive Delivery works from first principles.

Progressive delivery separates deploying a binary from exposing a feature to 100% of users using three complementary mechanisms: Blue-Green (two identical environments with an instant load-balancer cutover), Canary (incremental traffic shifting 1% -> 10% -> 50% -> 100% gated by automated P99 latency and 5xx SLO checks over 5–15 minute bake windows), and Feature Toggles (runtime flags decoupling trunk merges from user cohort activation).

Canary Rollout Gate

Automated SLO-Gated Canary Progression & Rollback

Metrics pass bake window5xx or p99 regressionSLO burn detectedCANARY 1% -> 10%5-15m bake vs baselinePROMOTE 50% ->100%P99 & 5xx within SLOAUTO ROLLBACKShift 100% to Stable

Automated metric gates halt and revert bad releases before more than a tiny fraction of users are affected.

02
STAGE 02 · WHY WE NEED ITL4 · FUNDAMENTALS

Why we need Progressive Delivery (Bounding Blast Radius).

Why this matters: The problem: see what breaks without Progressive Delivery under real concurrency or scale.

Think of Why we need Progressive Delivery (Bounding Blast Radius) as the intuition layer for Progressive Delivery: Blue-Green, Canary Deployments & Feature Toggles: The problem: see what breaks without Progressive Delivery under real concurrency or scale.

Big-bang weekend deploys turn minor regressions—like a memory leak or subtle N+1 query—into company-wide outages requiring frantic hotfixes. By shifting only 1% of traffic to the canary or flipping a feature flag off in <1 second, teams contain blast radius automatically and decouple marketing launches from code pushes.

Design Trade-Off

Why we need Progressive Delivery (Bounding Blast Radius)

Before · Unbounded Pods & Abrupt Kill
  • 502s during rolling updates
  • ndots:5 DNS flood or OOMKill
  • Unprotected node drains
After · PDB + Probes + Graceful Drain
  • Zero-drop SIGTERM draining
  • Bounded cgroup & conntrack
  • Canary metrics gate rollout
Engineering Decision Framework
Problem
How to implement Progressive Delivery: Blue-Green, Canary Deployments & Feature Toggles without hitting unbounded tail latency, state divergence, or operational fragility.
Naive Solution
Use a single unpartitioned path with unbounded retries and synchronous global coordination.
Why It Fails
Global coordination serializes throughput under load, while unbounded retries amplify transient stalls into full outages.
Alternatives
Compare synchronous strict-consistency paths against bounded asynchronous replication, local caching, or partitioned ownership.
Engineering Decision
If latency budgets leave no room for synchronous retries, canary Deployments &, pair backward-compatible expand-contract DB migrations with automated Canary SLO rollbacks and Feature Toggles so bad releases impact < 1% of traffic and revert in seconds.
Trade-Offs
Gains predictable p99 latency and fault isolation in exchange for explicit bounding, observability, and slightly higher implementation complexity.
Decision Exercise · Make the Call

When Progressive Delivery: Blue-Green, Canary Deployments & Feature Toggles experiences a sudden 5x traffic spike alongside a slow downstream dependency, which engineering choice best protects system stability?

Expand-Contract DB Compatibility Is Mandatory

During Blue-Green or Canary rollouts, old (v1) and new (v2) replicas share the same database concurrently—never drop or rename columns until v1 pods are 100% drained.

Flag Hygiene Prevents Combinatorial Tech Debt

Assign a 30-day TTL to release toggles and delete stale flags once 100% rolled out.

03
STAGE 03 · WHERE IT IS USEDL5 · APPLIED DESIGN

Where Blue-Green, Canary, and Feature Toggles fit.

Why this matters: Scope boundary: identify where this pattern fits best and where simpler or async alternatives win.

Think of Where Blue-Green, Canary, and Feature Toggles fit as the intuition layer for Progressive Delivery: Blue-Green, Canary Deployments & Feature Toggles: Scope boundary: identify where this pattern fits best and where simpler or async alternatives win.

Match the rollout mechanism to your compute budget, stateful constraints, and observability maturity.

ChoiceWhat it buysWhat it costs
Good Candidate: Canary (High-Traffic Microservices)Minimal extra compute (1–10% surge) and tiny blast radius gated by real Prometheus P99/5xx metrics.Requires mature observability, statistical baseline comparison, and automated rollback triggers.
Good Candidate: Blue-Green (Monoliths / Stateful Cutovers)Instant atomic LB/DNS flip-back with zero mixed-version replicas serving traffic simultaneously.Requires 2x compute capacity during cutover and careful DB backward compatibility.
Avoid: Breaking Schema Drops During Active RolloutsAlways run Expand -> Backfill -> Switch -> Contract across separate deploys.Dropping a column while v1 pods are still live crashes 100% of v1 traffic.
04
STAGE 04 · HOW IT IS MANAGEDL5 · APPLIED DESIGN

How Argo Rollouts Canary Gates are configured.

Why this matters: Operational control: configure bounds, failure handling, and safe production defaults.

Think of How Argo Rollouts Canary Gates are configured as the intuition layer for Progressive Delivery: Blue-Green, Canary Deployments & Feature Toggles: Operational control: configure bounds, failure handling, and safe production defaults.

Use a progressive delivery controller (Argo Rollouts or Flagger) with explicit traffic steps, bake pauses, and an AnalysisTemplate querying Prometheus for error rate and p99 latency against the baseline.

Component Topology

How Argo Rollouts Canary Gates are configured

Ingress / LBingressK8s ControlcomputeWorker NodestorageApp Podscontrolactive trafficreconcileprobe / SIGTERM
# Argo Rollouts Canary spec with automated SLO analysis
apiVersion: argoproj.io/v1alpha1
kind: Rollout
spec:
  strategy:
    canary:
      steps:
        - setWeight: 5
        - pause: { duration: 10m }
        - analysis:
            templates: [{ templateName: slo-5xx-p99-gate }]
        - setWeight: 25
        - pause: { duration: 10m }
        - setWeight: 100
05
STAGE 05 · ALTERNATIVESL6 · SCALE & TRADE-OFFS

Alternatives: Blue-Green vs. Canary vs. Rolling Update.

Why this matters: The trade-off: compare competing approaches across latency, consistency, and operational cost.

Think of Alternatives: Blue-Green vs. Canary vs. Rolling Update as the intuition layer for Progressive Delivery: Blue-Green, Canary Deployments & Feature Toggles: The trade-off: compare competing approaches across latency, consistency, and operational cost.

Each deployment strategy trades compute overhead against rollback speed and mixed-version exposure.

Request & State Flow

Alternatives: Blue-Green vs. Canary vs. Rolling Update

Control PlaneScheduler / IngressWorker NodePod / Container1. Apply desired replica & PDBspec2. Bind pod respecting CPU/memlimits3. Run readiness probe beforetraffic4. Drain in-flight connections onrollout
ChoiceWhat it buysWhat it costs
Blue-Green DeploymentInstant atomic rollback; clean version separation (never mixes v1 and v2 traffic).Requires 2x peak compute capacity during cutover windows.
SLO-Gated CanaryMinimal extra capacity and automated <1–5% blast radius containment.v1 and v2 run concurrently, requiring backward-compatible APIs and schemas.
Standard Kubernetes Rolling UpdateBuilt-in with zero extra controllers or service mesh.Lacks automated Prometheus SLO rollback gates—readiness probes alone miss business-logic 500s.
06
STAGE 06 · PRODUCTION ARCHITECTUREL7 · STAFF / PRINCIPAL

Production example: Envoy Weighted Canary + Prometheus Gate.

Why this matters: Production architecture: see how the components compose end to end under real load.

Argo Rollouts shifts 5% of Envoy ingress traffic to the v2 canary pods, waits 10 minutes, and runs an AnalysisRun comparing canary vs.

baseline p99 latency and 5xx rate.

Canary Evaluation Flow

Argo Rollouts + Envoy + Prometheus Auto-Rollback

Argo RolloutsEnvoy IngressCanary v2 (5%)Prometheus1. setWeight(5% -> v2, 95% -> v1)2. Route 5% traffic for 10m bake3. Query canary vs baseline5xx/p994. Abort & revert 100% to v1 (<5s)

Unbiased canary evaluation catches regressions at 5% traffic and restores 100% v1 without human intervention.

07
STAGE 07 · PROBLEMS SOLVED & FURTHER DEEP DIVEL7 · STAFF / PRINCIPAL

Problems solved by Progressive Delivery & Related Concepts.

Why this matters: Applied problems: connect these internals to concrete system design and debugging scenarios.

Think of Problems solved by Progressive Delivery & Related Concepts as the intuition layer for Progressive Delivery: Blue-Green, Canary Deployments & Feature Toggles: Applied problems: connect these internals to concrete system design and debugging scenarios.

Explore zero-downtime canary rollbacks, unbiased canary evaluation, and DB compatibility.

Practice · Explain the consequences

Practice: Make the trade-off yourself.

Question 1 of 3
Score: 0/3

Why must database schema changes use the Expand-and-Contract pattern before a Canary or Blue-Green deployment?

Recommended Learning Flow