What is Strangler Fig Pattern
Gradual legacy system replacement
Strangler Fig Pattern is an architectural pattern for gradually migrating from a legacy system to a new one without complete shutdown.
How It Works
- New functionality is built in the new system
- Old features are gradually migrated
- Facade routes requests between systems
- Old system is "strangled" like a tree by a fig
Migration Stages
- Analyze existing system
- Create facade/proxy
- Parallel development of new components
- Gradual feature migration
- Decommission old system
Advantages
- Minimal migration risk
- Business continuity
- Ability to roll back
- Gradual team learning
When to Apply
- Monolithic legacy systems
- Mission-critical applications
- Limited rewrite resources
- High availability requirements