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.
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 Concept for Strangler Fig Pattern\n# This pattern is architectural.\n\nclass Service:\n def execute(self):\n # Implementation logic\n pass