Skip to main content

Strangler Fig Pattern

Learn Strangler Fig Pattern (Advanced Microservices Patterns, Microservices Design Patterns) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

What is the Strangler Fig Pattern? Named after the strangler fig vine, which grows around a host tree and gradually replaces it - the Strangler Fig Pattern is a strategy for incrementally migrating a legacy monolith to microservices without a risky "big bang" rewrite . How It Works A routing layer (often the API Gateway) sits in front of both systems and directs each request to either the new microservice (if that feature has been migrated) or the old monolith (if it hasn't yet). Feature by feature, traffic is "strangled" away from the monolith until nothing depends on it and it can be safely...

More lessons in Advanced Microservices Patterns