Most migrations succeed. The ones that fail are rarely failed by a single broken step — they are failed by an absent rollback path. The team realises something is wrong an hour into the window, starts improvising a return to the source, and discovers along the way that DNS won’t reverse for another half day, the source database has accepted writes that the destination did not, and nobody documented who is allowed to make the call to abort.
What’s happening
A rollback is not the migration run in reverse. It is a separate sequence with its own preconditions. Once traffic has hit the destination, writes have likely landed there. Sessions exist on the destination that don’t exist on the source. New rows in the destination’s database have IDs that may collide with future inserts on the restored source. A purely DNS-level reversion sends traffic back to a source that is now out of sync with the data the user just generated — which is not a rollback, it is a different incident.
How to verify
Before any cutover, the runbook should answer in writing:
Trigger: what specific signal aborts the migration?
Decision authority: who calls it, with what escalation?
Time budget: how long after the trigger does the rollback need to complete?
Data direction: which side is canonical after the rollback?
DNS path: are records pre-staged with low TTL pointing to source?
Communication: who is told what, in what channel, when?
Walk through each line with the on-call team a week before cutover. A rollback runbook that has never been read out loud is a rollback runbook that does not work under pressure.
The fix
Stage the rollback before the migration begins. Keep the source healthy and writeable during the parallel window, with TTLs low on the rollback DNS path. Define a clear trigger: error rate above X for Y minutes, sustained user-reported breakage, a parity check that fails post-cutover. Authorise one person to invoke the rollback without seeking consensus during the window — debate during a cutover is how the time budget evaporates. Practice the data reconciliation step: if writes happened on the destination, dump them, replay them onto the source after the rollback, then resume.
The hardest part is not the technical procedure. It is the institutional permission to use it. The runbook only works if invoking it is treated as a valid outcome of the migration, not a failure. We write rollback paths into every migration engagement — and rehearse them before the window opens.