AlgoViz

Bad deploy & rollback

medium 6 min

A rollback restores a known-good serving configuration.

Video lesson · Chapter 1 of 4

A bad release behind a healthy average

0:00 / 1:53

Theory

Read or listen first. About 1 min.

What it is

A rollback restores a known-good serving configuration. Its safety depends on everything the new version touched, including durable records, message formats and clients that already changed. A flag rollback can be faster when it isolates the faulty behavior and both paths still read the same data.

Why it exists

A release fails only on older mobile clients. Scope the cohort by client and release, stop expansion and choose a reversible action. Before switching binaries, confirm the old reader accepts records written by the new writer. Afterward, verify the same failing client journey and any background queue that may need to drain.

If older clients also fail on the control, inspect shared dependencies or a client-side release before rolling back healthy servers.

A bad release behind a healthy average

Release router → Candidate (candidate share). Release router → Known-good version (control share)
Release router → Candidate (candidate share). Release router → Known-good version (control share)

How it works

Step through the idea, or press Play.

Step 1 of 3

Baseline. The baseline handles older clients.

Understand it

Worked incident

A bad release behind a healthy average

ObservationCandidate failures per 1000 (failures)Interpretation
Baseline2The baseline handles older clients.
Incident48The candidate fails a formerly supported payload.
After intervention3Withdraw exposure using the compatible path and recheck older clients alongside the rest of traffic.
Illustrative measurements from the same workload at three checkpoints.

Choose the next investigation

If older clients also fail on the control, inspect shared dependencies or a client-side release before rolling back healthy servers.

Summary

The whole topic in one minute.

Code can be rolled back faster than data. An old reader may fail on records already produced by the candidate.

If older clients also fail on the control, inspect shared dependencies or a client-side release before rolling back healthy servers.

Sources