Strangler Fig Pattern
Updated 2026-08-02
Summary
A migration strategy that grows a new system around the edges of a legacy one until the old system can be retired.
Definition
Named by Martin Fowler after the strangler fig, which germinates on a host tree and gradually replaces it, the pattern addresses the problem of replacing a large legacy system that cannot be rewritten in a single attempt. A facade routes traffic so that new functionality is built alongside the old system, and features are migrated one at a time until the legacy component has no remaining callers and can be removed. Key qualification: the approach requires careful handling of shared data during the transition, and premature decommissioning removes the fallback path.
Introduction
How to use
- Route at the edge: insert a facade so traffic can be directed to old or new implementations. - Migrate by slice: replace one feature at a time rather than attempting a single cutover. - Retire deliberately: delete the legacy path only after traffic and data confirm it is unused.
Mechanism
Replacing a large system in one step concentrates all the risk into a single event that is hard to test and hard to reverse. Building the replacement incrementally around the edges keeps the old system working while each new piece is validated in production, so failures stay local and reversible. The legacy system loses callers gradually until nothing depends on it and removal becomes routine.
Practice
In progress 0/1Practice this model in one real situation:
Cases
- E-commerce platforms have migrated order and user domains one at a time rather than rewriting the whole system.
- Retailers replacing mainframe inventory systems often run both systems behind a router for several years.
- Public agencies modernizing legacy registries frequently migrate one service at a time to avoid outages.
Common pitfalls
- Underestimating the complexity of keeping two systems and their data in sync during the transition.
- Decommissioning the legacy system too early, which removes the fallback if the new path fails.
- Running the transition indefinitely without a retirement date, which doubles maintenance cost permanently.
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- en.wikipedia.orghttps://en.wikipedia.org/wiki/Strangler_fig_patternverified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS