Replacing a large system without downtime: why not rewrite it all, and what is the Strangler Fig pattern
When a large system is too hard to change yet has to be replaced, a full rewrite is often the worst choice. The Strangler Fig pattern grows the new system along the edges of the old one, taking over piece by piece until nobody uses the old system.
I have recently read 13 practical articles on “how to replace large legacy systems,” by authors including Microsoft, AWS, Martin Fowler, three technical directors at Thoughtworks, Joel Spolsky and Paul Hammant. I also went through a round of academic literature. This series condenses them into 6 articles. Every claim comes with its original source, and pages with section anchors link the citation directly to that section for easy checking.
This is the first article: where the problem comes from, why a full rewrite is not recommended, and the basic skeleton of the Strangler Fig pattern.
Conclusions first
- The risk of a full rewrite is that nothing can ship during the rewrite, and it throws away the fixes accumulated in the old code (Spolsky, 2000).
- The Strangler Fig pattern is the alternative: grow a new system along the edges of the old one, taking over functions piece by piece until nobody uses the old system (Fowler, 2004).
- The common skeleton has three steps: insert an intermediary layer between callers and the old system, move one small piece at a time, and retire the old system once everything has been moved (Microsoft, n.d.-b; Amazon Web Services, n.d.).
- It is not only a technical process. Among the four activities Fowler cites, one is “changing the organization” (Fowler, 2024).
1. The problem: hard to change, yet it has to be replaced
Fowler describes a common situation: changes keep being made as patch upon patch, each patch makes the next change harder, and eventually people find the patches can no longer be applied (Fowler, 2024). Cartwright, Horn and Lewis add that for many organizations, once the cost of a change exceeds its expected benefit, small changes that would not be worthwhile on their own get absorbed into larger projects (Cartwright et al., 2024b, “Reducing the cost of change”).
They also describe this situation as a treadmill, using an organization they consider quite typical: every three to five years it launches a large replacement program; halfway through, business needs overtake it, so it starts over, or simply adds a new layer of technology on top of the old system. In the end, none of the old systems is actually retired (Cartwright et al., 2024b, “The legacy replacement treadmill”).
2. Why not rewrite it all
The intuitive solution is to rewrite everything. In 2000, Spolsky called this decision the worst single strategic mistake a software company can make, citing Netscape: the gap between two major releases was nearly three years, which he attributed to the decision to rewrite from scratch (Spolsky, 2000). His argument can be broken into three layers:
- Old code looks messy often because reading code is harder than writing it, and that does not necessarily mean its quality is poor.
- Many odd details that seem superfluous are fixes added after some real incident. Throwing the whole thing away means throwing this knowledge away too.
- Nothing can ship during a rewrite, and the market will not stop and wait.
He does not therefore argue for doing nothing. Instead he splits “the code is messy” into three kinds of problems (architecture, efficiency and appearance), and handles each with methods far smaller than a full rewrite.
Fowler’s short essay from 2004 also says a rewrite is always more complicated than it looks: new features are what everyone wants, but the old features must still be kept, and even old defects often have to be added back as well (Fowler, 2004).
3. The Strangler Fig pattern: where the name comes from
Fowler’s proposed alternative is: do not replace the old system all at once on one day. Instead, let the new system grow slowly along the edges of the old one, over a period of years, until the old system is replaced. He says the most important reason for choosing this path is reducing risk (Fowler, 2004).
The name comes from strangler figs he saw in the Queensland rainforest in Australia: a fig sprouts from the upper branches of a host tree and grows downward until its roots reach the soil and it can stand on its own, and the original host tree is eventually strangled to death. Fowler’s short essay from 2024 gives a fuller description: once the fig can stand by itself, the host tree may die, leaving only the fig, which keeps the host’s shape (Fowler, 2024).
The term was originally Strangler Application, and Fowler changed it to Strangler Fig Application in 2019. The reason was that people often shorten it to “strangler” and forget where the plant comes from, leaving only violent associations (Fowler, 2004, see the revision log at the end of the article). In 2024 he wrote another short essay reviewing the term. He said he himself did not use it in his later writing, yet it kept spreading, and it now generally refers to incremental approaches to modernization (Fowler, 2024).
4. The common skeleton
Placing the approaches of Microsoft and AWS side by side, the common skeleton I extracted is roughly as follows:
- Insert an intermediary layer between the caller and the old system. Microsoft calls it a façade layer, and AWS calls it a proxy layer. Callers keep using the original interface and need not know what has been replaced behind it (Microsoft, n.d.-b, “Solution”; Amazon Web Services, n.d., “Implementation”).
- Move one small piece of functionality at a time to the new system, with the intermediary layer deciding for each request whether it goes to the old or the new system.
- When all functions have been moved and nothing depends on the old system anymore, retire it (Microsoft, n.d.-b, “Solution”). Microsoft also says that after everything has been moved, the façade layer can be removed, or kept as an adapter for old callers (Microsoft, n.d.-b, “Problems and considerations”).
AWS’s version is limited to the scenario of splitting a monolithic application into microservices, and adds one more discipline: during migration, new features are built as new services rather than added to the monolith, while defects in the monolith are still fixed in the monolith to keep it stable (Amazon Web Services, n.d., “High-level architecture”).
5. Not just a technical process
Fowler’s 2024 short essay puts its emphasis beyond the technical process. He cites four activities defined by Cartwright, Horn and Lewis: work out the outcome you want, decide how to cut the problem into smaller pieces, deliver each piece successfully, and let the organization keep doing this. He specifically notes that this arrangement does not imply a sequence (Fowler, 2024). The three authors put it somewhat differently in their own overview: roughly in this order, but usually with repeated back-and-forth (Cartwright et al., 2024b, “Breaking the cycle”).
The following articles cover, in order: where to cut the old system open (seams), how old and new coexist, how to switch over and verify, common pitfalls, and the academic evidence.
This series
- Why not rewrite it all, and what is the Strangler Fig pattern (this article)
- 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
- Pitfalls and situations where it is not suitable
- What academia says: evidence, gaps and a checklist
Sources
- Spolsky, J. (2000, April 6). Things you should never do, part I. Joel on Software. (Blog post)
- Fowler, M. (2004, June 29). Original strangler fig application (Rev. 2019, April 29). martinfowler.com. (Blog post)
- Fowler, M. (2024, August 22). Strangler fig. martinfowler.com. (Blog post)
- Cartwright, I., Horn, R., & Lewis, J. (2024b, March 5). Patterns of legacy displacement. martinfowler.com. (Pattern collection overview)
- Microsoft. (n.d.-b). Strangler Fig pattern. Azure Architecture Center. Retrieved November 8, 2026. (Official documentation)
- Amazon Web Services. (n.d.). Strangler fig pattern. AWS Prescriptive Guidance. Retrieved November 8, 2026. (Official documentation)
Next:Strangler Fig pattern (2): Seams, and where to cut the old system open →
Email subscriptions will open later. For now, you can follow new articles and work with RSS.