Every time a team ships a new version of an app, there is a moment when some users are on the old version and some are about to be on the new one. How you manage that moment decides how many people see a bug, how fast you can undo it, and how much extra infrastructure you pay for. Three approaches cover most real teams: rolling updates, blue-green deployments and canary releases.

This post explains each one in plain terms, for product managers, founders and engineers who are new to operations. There are no config files here; the goal is to understand the trade-offs well enough to choose, or to ask your team the right questions. If you want the technical follow-ups, post 38 has a zero-downtime checklist, post 163 covers automated canary analysis, and post 294 is a real blue-green incident.

An analogy: replacing the staff of a busy restaurant

Imagine a restaurant with ten waiters. You have trained a new team with a new menu.

  • Rolling: swap waiters one or two at a time during service. At any moment, some tables get old waiters, some new. No extra staff needed, but for a while the restaurant runs two menus.

  • Blue-green: set up an identical second dining room with the new team, check it is ready, then redirect all arriving guests to it at once. The old room stays ready in case you need to send everyone back.

  • Canary: send one table in twenty to the new team first. Watch their faces. If they are happy, send more tables. If they complain, stop and bring them back to the old team.

Software works the same way. "Waiters" are copies of your application running on servers, and "guests" are user requests.

Rolling updates

The platform replaces old copies of the app with new copies a few at a time. Kubernetes does this by default; most managed hosting services do something similar.

What it protects against: downtime. As long as there are enough copies running, users never see the site go down.

What it does not protect against: a bad release. If the new version has a bug, it spreads to every copy as the rollout continues, unless health checks catch it. Health checks usually test "is the app answering?", not "is the checkout button working?".

Rollback: run the rollout again in reverse. That takes as long as the original rollout, often several minutes.

Extra cost: almost none, maybe one or two extra copies during the switch.

Blue-green deployments

You run two full environments. "Blue" serves users today. You deploy the new version to "green", test it with real infrastructure but no real users, and then switch traffic from blue to green in one step, usually at a load balancer or DNS level.

What it protects against: half-finished rollouts and surprises in setup. You test the exact environment that will serve users before anyone uses it.

What it does not protect against: bugs that only show up with real traffic. At the moment of the switch, 100% of users move to the new version.

Rollback: very fast. Switch traffic back to blue, often in seconds, as long as blue is still running and nothing incompatible has happened to shared data.

Extra cost: high during the release. You pay for two full environments, at least for the overlap period. On cloud platforms this can be a short window; on fixed hardware it means double capacity.

Canary releases

You send a small share of real traffic, such as 1% or 5%, to the new version, and compare its error rate, speed and business metrics with the old version. If the numbers look healthy, you raise the share step by step until it reaches 100%. If not, you send everyone back.

What it protects against: bugs that only real users trigger. A bad release hurts a small slice of users for a short time instead of everyone.

What it does not protect against: problems that do not show in your metrics, or issues that only appear at full load. Canaries are only as good as what you measure.

Rollback: fast, because most traffic never left the old version.

Extra cost: moderate. You need a small amount of extra capacity, but more importantly you need good monitoring and traffic-splitting tools, and someone, or an automated system, to make the go or no-go call at each step.

Side by side

Rolling

Blue-green

Canary

Users exposed to a bad release

Gradually, up to all

All at once

A small slice first

Rollback speed

Minutes

Seconds

Seconds

Extra infrastructure

Very little

Up to double during release

A little

Needs good monitoring

Helpful

Helpful

Essential

Tooling needed

Built into most platforms

Traffic switch, two environments

Traffic splitting, metrics comparison

Best for

Small teams, low-risk changes

Big changes, strict release windows

High-traffic products, risky changes

The rule all three depend on: compatible data changes

Every strategy above has a period when old and new versions run at the same time, or when you might switch back to the old version. During that period, both versions share the same database.

That means a release cannot change the database in a way the old version cannot handle. If the new version renames a column and the old version still reads the old name, rolling updates break the old copies mid-rollout, blue-green rollback breaks the moment you switch back, and canaries break the 95% of users still on the old version.

The usual solution is to split risky data changes into steps, sometimes called expand and contract:

  1. Expand: add the new structure alongside the old one. Both versions work.

  2. Migrate: release code that writes to both and reads from the new one; copy old data across.

  3. Contract: once no running version uses the old structure, remove it in a later release.

It takes more releases, but each one can be rolled back safely. Post 645 walks through a real case where skipping this step locked a production table during a deploy.

How to choose

Ask these questions about your product and team:

  1. How bad is a five-minute outage of one feature for all users? If it is acceptable, rolling updates with good health checks may be enough.

  2. Do you have reliable metrics for errors and key user actions? If not, canaries cannot make good decisions yet. Start with rolling or blue-green, and invest in monitoring.

  3. Can you afford double capacity for an hour? If yes, blue-green gives the fastest rollback. If not, canary or rolling.

  4. How often do you release? Many small releases a day favour automated canaries or rolling updates. Infrequent large releases benefit from blue-green's full pre-switch testing.

  5. Do you control a traffic layer (load balancer, service mesh, feature flags)? Blue-green and canary both need one.

Many teams mix them: rolling updates for most services, canaries for the checkout or payment path, and blue-green for occasional big infrastructure changes.

Feature flags are a separate tool

Feature flags turn a feature on or off for some users without deploying. They solve a different problem: separating "code is deployed" from "users see the feature". They pair well with any of the three strategies. A common setup is to deploy with rolling updates, then turn a feature on for 1% of users with a flag, which is a canary at the feature level instead of the server level.

Common mistakes

Mistake

Why it hurts

Do this instead

Treating blue-green rollback as always safe

Database changes may block switching back

Make every release backward compatible with data

Running canaries without comparing metrics

Bad releases look "fine" by default

Define success metrics before the first canary

Health checks that only test "server is up"

Broken features roll out to everyone

Check a real user path in health or smoke tests

Deleting blue right after the switch

No fast rollback when an issue appears an hour later

Keep the old environment for an agreed window

Choosing the fanciest strategy first

Tooling cost outweighs benefit

Start simple, add canaries where risk is highest

Key takeaways

  • Rolling updates avoid downtime cheaply but spread bad releases.

  • Blue-green gives the fastest rollback at the cost of double infrastructure during a release.

  • Canaries limit how many users see a bad release, but only with good metrics.

  • All three require database changes that both old and new versions can handle.

  • Mixing strategies by service risk is normal and often the best answer.

References