Use Cases for the Strangler Pattern
The Strangler pattern is primarily used when migrating from a monolithic architecture to microservices. It proves beneficial in scenarios where complete system rewrites pose significant risks and disruptions. This pattern is particularly suitable for legacy systems with complex codebases that are challenging to refactor entirely.
Strangler Pattern in Micro-services | System Design
The Strangler pattern is an architectural approach employed during the migration from a monolithic application to a microservices-based architecture. It derives its name from the way a vine slowly strangles a tree, gradually replacing its growth. Similarly, the Strangler pattern involves replacing parts of a monolithic application with microservices over time.
In order to implement strangler pattern, we need to follow 3 steps that are as follows:
- Transform
- Co-exists
- Eliminate