Strangler Fig pattern (4): Cutover and verification: leaving the step that cannot be undone to the end
Do reversible steps first, and do more of them; do the irreversible step alone and last. Before cutting over, prove that the old and new systems do the same thing: a dark launch, reconciliation, or running the same test suite against both are all ways to do it.
This is the fourth article in the series. The first two covered where to cut and how old and new coexist; this one covers the steps that actually hand traffic, data and responsibility over to the new system.
Conclusions first
- Set the rollback boundary in advance. In Microsoft’s database example, rollback remains possible as long as the old tables and the sync process still exist. Once they are removed, rolling back becomes far more costly, so removal is left to last and happens only after verification has passed (Microsoft, n.d.-b).
- The order in one case is: dark launch and reconciliation, then move reads, then move writes, and only last move the business logic (Cartwright et al., 2024a). This is one case, not a fixed procedure.
- Before cutting over, prove that the old and new systems do the same thing: write the current behaviour as tests and run both versions against them, or record the current interactions on the communication path and replay them (Cartwright et al., 2021).
- Traffic can be shifted in parts: gradually raise the share handled by the new system, sliced by business dimension. In one of Hammant’s cases, usage analytics are checked between releases to confirm that users are not being frustrated (Cartwright et al., 2024b; Hammant, 2013).
1. Microsoft’s database example: the rollback boundary
Microsoft’s database split example hands over data ownership for each domain in three stages. First, the new service keeps using the old monolithic database. Next, it builds its own domain database, moves the data and keeps the two in sync, and checks that they agree before cutting over. Once verification passes, the new database becomes the system of record for that domain, and the matching tables and stored procedures in the monolith are removed (Microsoft, n.d.-b, “Example”).
The most useful thing to note about this example is what it says about the rollback boundary. As long as the old tables and the sync process still exist, you can fall back to the monolithic database. Once they are removed, rolling back means rebuilding those objects and replaying the data changes, which is far more costly. So removal is a step deliberately left to last for each domain, and taken only after the new system has passed verification.
2. The cutover order in one case
The case in the Event Interception article follows a similar order (Cartwright et al., 2024a, “Case study: incremental domain extraction”):
- Dark launch: the new service receives only the data synced to it and serves no one. It is reconciled against the old system, and differences can be handled without affecting the business.
- Move reads: keep the original interface unchanged and direct reads to the new service, while writes temporarily stay on the old side.
- Move writes: once writes go to the new service, it becomes the authoritative source, the old storage is no longer updated, and downstream uses (such as reports) must move as well.
- Move the business logic: turn a service that previously managed only data into one that takes on the business rules.
Note that this is the order adopted in one case in the article. The author does not present it as a fixed procedure.
My view is that, read together with the Microsoft example, the shared principle is: do reversible steps first and do more of them; do irreversible steps alone and last, and verify before doing them. I have drawn this from the two sources; it is not the wording of either one.
3. How to prove the old and new do the same thing
The Feature Parity article as a whole does not recommend chasing feature parity (the fifth article covers this), but I find the verification techniques it sets out very practical (Cartwright et al., 2021):
- Write the current behaviour as an executable specification. Use a set of tests as the behaviour spec, run it once against the old and once against the new implementation, and judge whether they agree (Cartwright et al., 2021, “Use tests to ensure feature parity”).
- Record and replay on the communication path. Insert a proxy on the interaction path to record the current interactions, which can then be replayed, and can also be used as known-correct responses (Cartwright et al., 2021, “Interfaces”).
- Check that the migrated tests are themselves correct. The article says this cannot be known for certain; mutation testing may provide additional assurance.
- Do not lean too heavily on high-level tests. Splitting by feature, screen or flow easily leads to too many end-to-end tests.
Branch by abstraction offers a similar approach: while building the new implementation, run it in the test environment behind a feature flag and compare its behaviour with the old implementation (Fowler, 2014). Hammant notes that where the old technology has no unit tests, integration and functional tests serve as a safety net across both the old and new sides (Hammant, 2013, “Best practices”).
4. Ramping up: handing over in parts
Cutover does not have to happen all at once. In Cartwright et al.’s overview, routing is set by business dimension (for example, product type or individual ID), and the share handled by the new system is raised step by step (Cartwright et al., 2024b, “Transitioning into live service”). In Hammant’s case of a consumer goods magazine’s web portal, the client ran usage analytics between releases to confirm that users were not being frustrated, and later also put A/B testing into the plan (Hammant, 2013, “Used consumer goods magazine’s web portal”). In the airline case, he argues for a single trunk plus feature toggles, which he regards as a good way to cope with uncertainty about the order in which releases will land (Hammant, 2013, “An airlines booking app”).
This series
- Why not rewrite it all, and what is the Strangler Fig pattern
- Seams: where to cut the old system open
- Coexistence of old and new: anti-corruption layer, transitional architecture, branch by abstraction, parallel change
- Cutover and verification: leaving the step that cannot be undone to the end (this article)
- Pitfalls and situations where it is not suitable
- What academia says: evidence, gaps and a checklist
Sources
- Microsoft. (n.d.-b). Strangler Fig pattern. Azure Architecture Center. Retrieved November 8, 2026. (Official documentation)
- Cartwright, I., Horn, R., & Lewis, J. (2024a, March 5). Event interception. martinfowler.com. (Pattern article)
- Cartwright, I., Horn, R., & Lewis, J. (2021, July 27). Feature parity. martinfowler.com. (Pattern article)
- Fowler, M. (2014, January 7). Branch by abstraction. martinfowler.com. (Blog post)
- Cartwright, I., Horn, R., & Lewis, J. (2024b, March 5). Patterns of legacy displacement. martinfowler.com. (Pattern collection overview)
- Hammant, P. (2013, July 14). Legacy application strangulation: Case studies. Paul Hammant's blog. (Case collection)
Next:Strangler Fig pattern (5): Pitfalls and situations where it is not suitable →
Email subscriptions will open later. For now, you can follow new articles and work with RSS.