Plan a release rollback
Prepare recovery before deploying a new version.
Define the trigger
Agree on measurable health checks, acceptable error rates, and who can initiate a rollback. Include database compatibility in the decision.
Keep a known-good artifact
Retain the previous version and configuration and make deployment history visible. Prefer backward-compatible data changes during a staged rollout.
Exercise the plan
Test rollback in staging, time the procedure, and verify service and data integrity. Document when restoring a backup is necessary instead.