What is Strangler Fig Pattern?
The Strangler Fig Pattern is a migration strategy for incrementally replacing a legacy system with a new system.
The Strangler Fig Pattern is a migration strategy for incrementally replacing a legacy system with a new system. Named after the strangler fig tree that grows around an existing tree and eventually replaces it, this pattern avoids the risks of a "big bang" rewrite.
The approach: build new functionality alongside the old system, route traffic to the new system piece by piece, and gradually deprecate old components until the legacy system can be removed entirely.
Step 1: Add a routing layer (facade) in front of the legacy system. Step 2: Build new components that implement specific functions. Step 3: Route specific requests to new components. Step 4: Repeat until all functionality is migrated. Step 5: Remove the legacy system.
The Strangler Fig Pattern is significantly safer than a full rewrite because: you can migrate incrementally and roll back individual changes, the legacy system continues to serve live traffic during migration, and you can validate new components against production data.
Why It Matters
The Strangler Fig Pattern is the recommended approach for modernizing legacy systems because it dramatically reduces risk compared to full rewrites. It allows organizations to modernize incrementally while maintaining business continuity.
Frequently Asked Questions
What is the strangler fig pattern?
A migration strategy where you incrementally replace a legacy system by building new components alongside it and gradually routing traffic to the new system until the old one can be removed.
When should you use the strangler fig pattern?
When migrating from a monolith to microservices, replacing a legacy system, or modernizing architecture. It is preferred over full rewrites because it is incremental and reversible.
Related Terms
Need Expert Help?
Richard Ewing is a Product Economist and AI Capital Auditor. He helps companies translate technical complexity into financial clarity.
Book Advisory Call →