Rollback criteria and limits
Define what failure warrants rollback and identify a known previous artifact. Rolling back application code may not reverse database schema changes or external effects. Include compatibility and data recovery decisions rather than assume switching an image guarantees the former behavior is safe. For example, a migration removes a required column; the previous application image may fail even if its rollout succeeds.
A migration removes a required column; the previous application image may fail even if its rollout succeeds.
A release changes both application code and a database schema. The new image fails, so the team considers returning to the previous image. If the migration removed a column that old code requires, switching images can worsen the outage. Rollback planning must separate reversible runtime configuration from irreversible or incompatible data effects.
Rollback restores a selected earlier release state. A migration changes stored data or schema. Compatibility determines whether old and new code can operate against the relevant data layout. Expand-and-contract migrations can support staged transitions, while destructive changes need explicit recovery or forward-fix plans. Preserve prior artifact identity and configuration dependencies. A fallback that was healthy last week is not automatically healthy against today's state. Define rollback criteria before deployment, but permit reasoned forward repair when restoration would violate data integrity or introduce a larger failure.
A migration removes a required column; the previous application image may fail even if its rollout succeeds.
Do not overlook this operational distinction: Include compatibility and data recovery decisions rather than assume switching an image guarantees the former behavior is safe.