Orofold Labs

Launching soon

Notes Get in touch

Operations and security 4 min read Updated

Releases and rollbacks you can reverse

In short

Small, frequent releases are easier to test and easier to reverse than large ones, so plan the way back before you ship.

A release is only as safe as your ability to reverse it. Google’s Release Engineering guidance treats shipping software as a discipline of its own, built on small changes, repeatable builds and a clear route back. Small teams without a platform team or a large set of tools can apply these ideas too.

Keep each release small

The chapter notes that frequent releases result in fewer changes between versions. Fewer changes make it easier to see which one caused a problem. A small team gets the same effect by splitting work into changes that can each be tested, deployed and removed on their own.

A release that mixes a database migration, a new payment flow and a design update is hard to reverse. Split it. Ship the migration first, then the code that uses it, then the feature behind a switch that you can turn off.

Build the same way every time

The same chapter describes hermetic builds, which do not depend on other software installed on the build machine. They rely on known versions of tools and dependencies. For a small PHP product, that means a documented PHP version, pinned dependency versions and a lock file, so that someone else can repeat the build from a clean checkout and get the same result.

Working on something similar in your own product? A few honest sentences are enough – we read every enquiry and reply by email. Apply with your idea

Canary first, then the rest

The Canarying Releases chapter in the Google SRE Workbook defines canarying as a partial and time-limited deployment of a change, together with its evaluation. The canary receives a small share of traffic, and its results are compared with a control group that runs the old version. The worked example uses a canary population of 5%, and the chapter notes that the impact of a defect grows with the traffic exposed to it.

The decision rule is simple. If the canary’s error rate is too far from the control group’s, the canary is bad, and the team should pause and roll back, or ask a person to help diagnose the problem. The Workbook advises choosing only a few metrics, perhaps no more than a dozen, and checking them alongside absolute measures such as defined service level objectives.

A small team can canary without a traffic-splitting platform. Release to one server first, to internal users, or to a single region if you have one. The principle is the same: limit the exposure, watch the same measures for both groups and decide before everyone is affected.

Plan the rollback before you deploy

The Workbook notes that smaller artefacts make it cheaper and easier to roll back any release. In a blue/green setup, it describes rollback as reversing a router change, which is far simpler than redeploying code. Reversal works only if you prepared for it, so write the plan before the release starts.

StageWhat to write down
BeforeThe change, its size and the person who owns it
DeployWhich servers or users receive it first, and for how long
WatchThe few measures that decide the release, and the values that mean stop
ReverseThe exact steps to return to the previous version, and who runs them

Check that the previous version still runs against the current database and configuration. A rollback that fails halfway can leave the system in a worse state than the release did. If a release goes wrong in a way that affects customers, follow incident response for a small team alongside the rollback.

A checklist for each release

Use the checklist for every release, including small ones. Test the change first where it can run safely, using staging environments that match production. Choose the watched measures with help from monitoring and alerts for a small product.

  1. Keep the change small enough to explain in one sentence.
  2. Confirm that the build repeats from a clean checkout.
  3. Deploy to a small share of traffic, or to internal users, first.
  4. Compare the chosen measures with the control group for an agreed period.
  5. Roll back at once if a measure passes its stop value, and ask questions afterwards.
  6. Record the release, its outcome and any change to the plan.

Common questions

What is a canary release?
The Google SRE Workbook defines canarying as a partial and time-limited deployment of a change and its evaluation. The canary is compared with a control group, and its error rate helps decide whether the rollout continues.
Why should releases be small?
The Google SRE Book notes that frequent releases result in fewer changes between versions. That makes it easier to find the change that caused a problem and to reverse it.
When should a team roll back?
The SRE Workbook advises pausing and rolling back when the canary error rate is too far from the control error rate. It also recommends checking absolute measures, such as defined service level objectives.

Sources

  1. Release Engineering, Google SRE Book. Accessed 24 November 2026
  2. Canarying Releases, Google SRE Workbook. Accessed 24 November 2026

Further reading

Have an idea that should exist? Or a working product that needs more customers, a new website or a complete rework? Bring us anything. Apply with your idea

All notes