Skip to main content
    All posts
    Software

    Your Rollback Plan Is Hope, Not A Process

    Most teams can ship a deploy in two minutes but have never actually tested reversing one, and that gap shows up during an outage.

    Ask an engineer how long it takes to deploy and they'll have an answer ready. Ask how long it takes to undo a bad deploy and you'll usually get a pause, then "it depends." That pause is the whole problem. If rolling back requires thinking, it isn't a rollback plan. It's an experiment you're about to run live, on your own outage.

    The deploy button lies about how safe you are

    CI/CD pipelines got really good at making forward motion easy. One click, a few minutes, done. That ease quietly convinces teams they're also fast at reversing things, because the tooling feels symmetric. It isn't. Deploying ships code into a state that already has new data, new user sessions, and new assumptions baked in. Going backward means untangling all of that, not just checking out an older commit.

    Database migrations are where the plan actually breaks

    This is the part almost nobody tests until it matters. You renamed a column, dropped a field, or backfilled a table as part of the release. Reverting the code is trivial. Reverting the schema underneath it, without losing data that real users already wrote in the meantime, usually isn't. A lot of "rollback plans" are really just "redeploy the old code and hope the new database doesn't break it," which works right up until it doesn't.

    A few habits fix most of this before it ever becomes a crisis:

    • Make migrations additive and backward compatible, so the old code can still run against the new schema for a while.
    • Separate the schema change from the code change into two deploys instead of one.
    • Decide, before you ship, whether "rollback" means reverting or fixing forward, because for most real incidents it's the second one.

    A real rollback plan looks boring

    The teams that handle this well aren't the ones with the fanciest tooling. They're the ones who treat "how do we undo this" as a design question asked before the deploy, not an improv exercise during it. That means feature flags for risky changes, migrations that don't paint you into a corner, and an honest answer to "what's our actual recovery path" that doesn't start with "well, in theory."

    None of this is exotic. It just takes someone deciding it matters before the pager goes off, not after.

    If you're shipping fast and have never actually rehearsed reversing a release, that's worth fixing before it costs you a weekend. We build products at Cedrix with this baked into how we ship from day one, and if you want to see what that looks like on something real, our free MVP build is a no-risk way to find out. Otherwise, get in touch and we'll talk through where your current setup would actually break.

    Want to build something like this?

    Cedrix ships production-grade software fast — and even offers a free 10-day MVP so you can see your idea working before you commit.