Build your rollback plan before release day
Define how to recognise a failed release and recover the application and its data.
Choose a release signal
Pick a check that reflects actual customer use, such as sign-in or checkout. Add an application error threshold and identify who owns the release decision. Watch the checks during rollout and keep the release owner reachable.
Separate app recovery from data recovery
A previous deployment can restore app code quickly, but the data may already have changed. Design schema changes that can coexist with both versions where possible. Verify which changes need a forward fix or a backup restore.
Rehearse on a representative environment
Run the normal deploy, simulate a failed health check, and practice recovery. Record the steps, where to find credentials, how to contact the owner and what proves the recovery worked.