A traditional cutover is a date. Everyone gathers, Gen 1 stops, Gen 2 starts, and the rollback plan is a document nobody has rehearsed. Feature flags and dark launches replace the date with a series of small, reversible switches, most of them flipped long before the day anyone would call cutover.
Feature flags
Pete Hodgson's definition: "Feature Toggles (often also refered to as Feature Flags) are a powerful technique, allowing teams to modify system behavior without changing code."
For a migration, the flag is a decision point in code: does this request go to Gen 1 or Gen 2? Because the answer is configuration, not code, it can change without a deploy, for one user, one customer, one region or everyone, and it can change back.
Hodgson sorts flags into kinds. Two matter most here:
- Release toggles hide work that is not ready. They "allow incomplete and un-tested codepaths to be shipped to production as latent code which may never be turned on." Gen 2's code can ship to production in pieces months before any user reaches it.
- Ops toggles exist for the people running the system: "We might introduce an Ops Toggle when rolling out a new feature which has unclear performance implications so that system operators can disable or degrade that feature quickly in production if needed." During a migration, the flag that routes to Gen 2 is an ops toggle. It is the rollback.
Dark launches
Martin Fowler describes dark launching as "taking a new or changed back-end behavior and calling it from existing users without the users being able to tell it's being called. It's done to assess the additional load and performance impacts upon the system before making a public announcement of the new capability."
For a rewrite, that means real production requests reach Gen 2 and Gen 2 does all the work, but users still get Gen 1's answer. Fowler names this use directly: "Dark launching can also enable parallel running of a re-implemented feature. The old and new code can both be called and their results checked to see if there are changes with the new algorithm, but only one answer returned to the interface."
That is the parallel run and shadow traffic idea delivered by a flag. And the flag is what keeps it safe. In Fowler's words, "If we use a Feature Flag we can switch the recommendation on and off easily in production, so if we do see an worrying impact on performance we switch it off before anyone really notices."
Then a canary
Once Gen 2 has handled real load in the dark, the flag starts sending a few real users to it for real. Danilo Sato describes a canary release as "slowly rolling out the change to a small subset of users before rolling it out to the entire infrastructure and making it available to everybody." His rollback is the one a flag gives you for free: "the rollback strategy is simply to reroute users back to the old version until you have fixed the problem."
Fowler draws the line between the two: dark launching suits work that "isn't something users choose to do." Where the result depends on what a user does, use a canary.
A cutover built from flags
- Ship Gen 2 behind a release toggle, off for everyone.
- Dark launch. Send copies of real requests to Gen 2, compare its answers with Gen 1's, return Gen 1's. Fix differences until they stop appearing.
- Canary. Route internal users, then 1% of customers, then 5%, to Gen 2 for real. Watch errors, latency and support tickets at each step.
- Go to 100% and leave the flag in place, set to Gen 2, as the rollback.
- Remove the flag and the Gen 1 path once Gen 2 has run cleanly for an agreed period. That removal is part of killing Gen 1.
The cutover day in this plan is step 4, and it is the least dramatic day of the project. The cutover page covers what still has to be ready for it.
The cost of flags
Hodgson is blunt that "Toggles introduce complexity." His remedy: "Savvy teams view the Feature Toggles in their codebase as inventory which comes with a carrying cost and seek to keep that inventory as low as possible." Release toggles, he says, "should generally not stick around much longer than a week or two." Migration flags live longer than that, which makes the removal plan more important, not less.
Some teams put "expiration dates" on their toggles, Hodgson notes, and some go as far as "time bombs" which fail a test if a flag outlives its date. A Gen 1 path kept alive by a forgotten flag is a second system nobody is paying attention to.
When not to use it
- Shadow calls would cause real effects that you cannot switch off, such as payments or email.
- The system cannot run twice. If capacity or licenses do not allow a second copy under load, rehearse elsewhere.
- The change cannot be reversed anyway, for example a one-way data change. A flag would promise a rollback you do not have.
- No one will remove the flag. Every permanent flag doubles the paths that need testing.
Where it goes wrong
- The flag is not the only path. A batch job or another service reaches Gen 1 directly, so flipping the flag moves only part of the traffic.
- Dark launch writes for real. Gen 2 handling a shadow request must not charge a card, send an email or write to a shared table. Make side effects no-ops in dark mode, and test that they are.
- Comparisons nobody reads. The dark launch logs differences, and the dashboard has no owner.
- Flags that never leave. Two years after cutover the code still checks which generation to call on every request.
Checklist
- One flag decides Gen 1 or Gen 2 for each slice, and every path to that slice goes through it.
- Gen 2 can run in dark mode with every side effect switched off.
- Differences between Gen 1 and Gen 2 answers are logged, counted and owned.
- The canary steps and the numbers that stop a step are written down.
- Flipping back to Gen 1 has been rehearsed in production.
- Every migration flag has a removal date.
Sources
- Pete Hodgson - Feature Toggles (aka Feature Flags) (martinfowler.com, October 9, 2017) - the definition, release and ops toggles, kill switches, and toggles as inventory with a carrying cost
- Martin Fowler - Dark Launching (April 29, 2020) - the definition, using a feature flag to switch it off, and dark launching for parallel running a re-implemented feature
- Danilo Sato - Canary Release (martinfowler.com, June 25, 2014) - rolling out to a small subset of users first, and rollback by rerouting users
Last updated November 29, 2026.

