x

Product4 min read

Introducing Shipr 3.0: instant rollbacks

MH
Marcus Hale

Head of Product

Today we're releasing Shipr 3.0. The headline feature is one we've wanted for years: rollbacks that are so fast they stop being an incident.

Most teams can ship a change in minutes. Far fewer can undo one that quickly. Reverting often means opening a pull request, waiting for checks, rebuilding the old code and hoping the result matches what was running before. All of that happens while customers are seeing errors.

Every deploy is immutable

Each build produces a self-contained artifact that is never modified after it ships. It includes the compiled code, static assets, routing rules and a reference to the configuration it was deployed with. Production is just a pointer to one of those artifacts.

Rolling back means moving the pointer. There's no rebuild, no cache warm-up and no cold start. You also get exactly what was running before, not a fresh build of the same commit that might pick up a different dependency.

$ shipr rollback
✓ production → v44 (7d03b8a) in 0.4s

What happens in those 0.4 seconds

Every deploy stays warm in all 18 edge regions, so the version you need is already in place. When you roll back, Shipr does three things:

  • Confirms that the target version is healthy and available in every region.
  • Moves the production pointer in a single update.
  • Sends new requests to the target version while requests already in progress finish where they started.

That last step means a rollback doesn't cut anyone off partway through a request. You can watch the change reach each region in the deploy list, which now shows the version every region is serving.

Choosing where to go back to

By default, shipr rollback returns to the previous production deploy. That's usually what you want, but the previous version isn't always the last good one. If a problem took a few releases to surface, choose an older version instead.

$ shipr rollback --to v41
✓ production → v41 (c83e0d5) in 0.4s

You can do the same from the dashboard. Open a deploy, check what changed and promote it. Rolling forward works the same way, so once a fix is ready you aren't stuck on the old version.

Gradual rollouts

A fast undo is useful. Limiting how many people see a problem in the first place is better. With gradual rollouts, you can promote a new version to 1%, 10% or 50% of traffic, watch error rates and latency in real time, and let Shipr automatically roll back if health checks fail.

  • Shift traffic by percentage or by header.
  • Roll back automatically when error rates or latency regress.
  • See who promoted what, and when, in the audit log.

Header-based routing is handy before you involve any customers. Send your own team to the new version first, try the important paths, then start on a small percentage of real traffic.

What a rollback can't undo

A rollback changes the code that's running. It doesn't reverse a database migration, recall an email or undo a call to another service. If a release deletes a column that the previous version still reads, going back to that version won't help.

We recommend splitting risky data changes into separate releases. Add the new structure first, move reads and writes over, and remove the old structure only when you no longer need to return to code that uses it. Each release then works with the one before it, which is what makes a rollback safe.

A rollback should be an ordinary decision, not an act of courage.

Upgrading to 3.0

There's nothing to migrate. Your next deploy on Shipr 3.0 will be immutable, and the rollback command will be ready as soon as you have two production deploys to move between. We suggest practising on a quiet afternoon: roll back, check the site, then roll forward again. It's much better to learn the command then than during an outage.

Availability

Instant rollbacks are available today on every plan. Gradual rollouts and audit logs are available on Team. The full list of changes is in the changelog.