Frequent questions about rollback: when to trigger it, how it differs from revert, and what to do when the migration is stuck.
- When to trigger a rollback?
When error rate, latency or business KPI exceeds threshold after deploy. The trigger must be measurable and automated.
- Rollback vs revert?
Rollback restores the deployed state (infrastructure). Revert undoes a commit (source code). You rollback a deploy and revert a commit.
- What about irreversible migrations?
Write down migrations. If data was lost, restore from backup. Rollback stops being a minute and becomes an hour, so plan accordingly.
- Can rollback be automatic?
Yes, and it should be. Monitor → threshold → trigger → route back. Human-in-the-loop adds minutes.