SimuVedaSystem Design Lab Open in the lab

DevOps and cloud / Intermediate / 6 min / Updated

Deployments: rolling, blue-green and canary

Ship v2 three ways. Batch size, double fleets and canary steps decide how many users a bad release hurts before the health gate rolls it back.

Start the simulation → Change the load, break a part, watch what happens. Free, no sign-up.

In short

What is deployment strategies?

A deployment strategy is how a new version replaces the old: a few servers at a time (rolling), a second fleet switched at once (blue-green), or a few users first (canary).

Why does it matter?

Every release can carry a bug. The strategy sets how many users meet it, how much spare capacity you need, and how fast you can undo it.

What is the trade-off?

Rolling needs no spare servers but dips capacity; blue-green undoes instantly but doubles servers and exposes everyone; canary limits harm but is slower.

How do you explain it in an interview?

"CI builds one image; CD ships it as a canary (1%, 10%, 50%, 100%) with automatic checks on errors and latency, auto-rollback on regression, and blue-green when everything must flip at once."

Try this in the simulation

  1. Press Deploy v2 with each strategy and no bug. Rolling needs no extra servers, blue-green briefly needs, canary moves traffic.
  2. Set the rolling batch to 4 or 5. Too many servers are out at once and requests are dropped.
  3. Choose Fails 30% and deploy with blue-green, then with canary. Compare Users hit by the bug before the gate rolls back.
  4. Turn the health gate off and deploy the buggy v2 as a canary. Nobody stops it, and soon every user meets the bug.

Open the deployment strategies simulation →

Check yourself

A rolling deploy replaces 5 of 10 servers at a time, and 7 are needed for the traffic. What happens?

Answer: Requests are dropped while each batch boots, because only 5 servers are serving. Rolling needs no extra servers, but every server taken out is capacity lost. Keep the batch (or max unavailable) below your headroom, or add surge servers.

Why is a blue-green rollback so fast?

Answer: The old fleet is still running, so the router just switches back. Blue stays up until you are confident in green. The price is running two full fleets for a while.

v2 fails 30% of requests. Why does a canary hurt fewer users than blue-green?

Answer: Only the small share of traffic on v2 meets the bug while the health gate is still measuring. The gate needs a window of data before it can judge v2. With 10% of traffic on v2, only 10% of users are exposed during that window.

See it happen in the simulation →

deploymentci/cddevopsrolling updateblue-greencanaryrollbackkubernetes

More in devops and cloud