Skip to main content
Cloud / DevOpsDeployment StrategiesDiagramIntermediate

Rollback Strategy

KO: 롤백 전략·EN: Rollback Strategy·JA: ロールバック戦略

A recovery mechanism that rapidly reverts a faulty deployment back to the last known-good version when error rates or latency thresholds are breached

Table of Contents

Structure Diagram

Incident Detection to Automated Rollback Timeline
TIMELINE5 steps
STEP 1Deploy v2(Traffic shifted)
Quick Answer

What is Rollback Strategy?

A recovery mechanism that rapidly reverts a faulty deployment back to the last known-good version when error rates or latency thresholds are breached. It is a core concept in Deployment Strategies within Cloud / DevOps.

Core Principles

A Rollback Strategy assumes that any release can fail in production and prioritizes immediately restoring service to the last known-good version before spending time on root-cause debugging.

Fast, reliable rollbacks are the strongest lever for lowering Mean Time to Recovery (MTTR), but they only work when previous immutable artifacts are retained, traffic can shift back quickly, and data schemas remain backward-compatible.

Practical Takeaways

  • Rollback first, debug second: If crafting and testing a roll-forward hotfix takes more than a few minutes, revert immediately to stop customer impact and investigate calmly afterward.
  • Use Expand-and-Contract for DB migrations: Destructive schema changes (dropping or renaming columns) break older application code on rollback. Add new structures first, deploy, verify stability, and clean up old columns in a later release.
  • Test rollbacks routinely: Untested rollback scripts often fail during incidents due to expired images or missing permissions. Rehearse rollbacks regularly in staging.

Notable Examples

  • Kubernetes & Argo Rollouts: Keeps previous ReplicaSets ready and automatically aborts rollouts when Prometheus error rates breach thresholds.
  • AWS CodeDeploy: Integrates with CloudWatch alarms to trigger automatic rollback on 5xx spikes.
  • GitOps Revert: Running git revert on the manifest repo reconciles the entire cluster back to the prior verified state.