Web apps & software

What is a rollback?

A rollback is returning a system to its previous working version after a release causes problems, restoring service quickly while the cause is investigated.

Planning for it

Keep the previous version ready to redeploy, back up the database before migrations, and make database changes backward compatible so the old code still works with the new data structure. Practise rollbacks so they are routine.

When rollback is not enough

If a release has already changed or deleted data, rolling back code does not restore it. That is why backups and careful migrations matter as much as the code itself.

Questions, answered

Minutes. If rolling back takes hours, the deployment process needs work.

Not directly. You can halt a staged rollout and publish a fixed version; users who updated keep the bad version until then.

By the Stegnor team · Updated