Skip to content

Lesson 6 of 9 · 28m

Progressive Delivery and Rollback That Survive Contact

Use staged exposure, health metrics, and rollback-compatible changes to turn deployment from a binary event into controlled risk.

The most dangerous sentence in deployment engineering is we can always roll back. Sometimes you cannot. The database migration already ran, customer data was written in a new shape, a mobile client cached behavior, or a third-party workflow executed. Progressive delivery exists because release risk is not binary. You expose change gradually, measure reality, and keep a credible exit.

Separate deploy from release

Deploying code means placing it in an environment. Releasing means allowing traffic or users to experience it. Feature flags, traffic splitting, and environment tiers let you decouple those events:

artifact deployed     new bits exist in production
canary enabled        5% of traffic sees behavior
released              intended population sees behavior
rolled back           exposure returns to prior safe behavior

This distinction matters because rollback of exposure can be instant even when rollback of code or data is not.

Canary is a measurement system

A canary is not just a small deployment. You need baseline and candidate metrics, automated evaluation, and a decision window:

# Argo Rollouts-shaped example
strategy:
  canary:
    steps:
      - setWeight: 5
      - pause: {duration: 10m}
      - setWeight: 25
      - pause: {duration: 20m}
      - setWeight: 50
      - pause: {duration: 20m}

Pair this with error rate, latency saturation, business metrics, and logs scoped to revision. A pause without analysis is just slower failure.

Database changes dominate rollback design

Use expand-and-contract migrations. First add schema in a backward-compatible way, deploy writers and readers that tolerate both shapes, backfill, then remove old shapes only after the new behavior is stable:

ALTER TABLE users ADD COLUMN display_name_normalized text;
-- deploy code that writes both forms
-- backfill in bounded batches
-- later contract: stop writing old form, then remove it

A destructive migration coupled tightly to application deploy removes your exit before the first user complains.

Roll forward is often the honest answer

If data was mutated irreversibly, rolling back binaries does not restore the world. Roll forward with a corrective patch. This is why fast small pipelines matter: the best rollback is sometimes a ten-minute corrective release path exercised before you need it.

Feature flags need lifecycle discipline

Flags are excellent release controls and terrible permanent clutter. Record owner, purpose, default, expiry, and cleanup task. Test both states in CI for active migration flags. A flag that lives forever becomes untested branching logic distributed across production.

Practice the failure path

Run rollback drills. Can you redeploy the previous artifact without rebuilding? Are database migrations compatible? Are caches, queues, and client versions tolerant? Does observability distinguish old and new revisions? The answer on paper is not the answer under incident pressure.

Field notes

  • Label telemetry with artifact version and flag state or canary analysis becomes guesswork.
  • Never let automatic promotion continue during a declared incident or degraded baseline.
  • A 1% canary can still be high risk if it selects only internal users or only one tenant type.
  • Rollback plans that depend on a single engineer's memory are not rollback plans.

Was this lesson helpful?

Sign in to rate