Drawbacks of Strangler Pattern
- Complexity: The migration process can introduce complexity due to the coexistence and interaction between the monolithic application and microservices.
- Data Consistency: Synchronizing data between the monolithic application and microservices can pose challenges, requiring careful management to ensure consistency.
- Increased Network Calls: The introduction of microservices can lead to an increase in network calls, potentially impacting system performance and latency.
- Dependency Management: Managing dependencies between the remaining monolithic components and new microservices requires proper versioning and dependency strategies to avoid conflicts.
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