Description
A pattern for migrating a legacy system by gradually replacing specific functionalities with new applications and services. The new system wraps around the old one like a strangler fig tree.
Where to use
- Monolith decomposition. \n
- Incremental migration.
Real World Example
An old E-commerce monolith exists. You build a new 'Review Service'. The API Gateway routes '/reviews' to the new service, while everything else still goes to the Monolith.
Code Example
# Code Concept for Strangler Fig Pattern
# This pattern is architectural.
class Service:
def execute(self):
# Implementation logic
pass
