نمط strangler-fig يهاجر بشكل تدريجي: تقوم بتغليف monolith بطبقة توجيه، واستخراج إمكانية واحدة في كل مرة إلى خدمة، وإعادة توجيه حركة المرور إليها — حتى يتم "خنق" monolith بالكامل. لا يوجد إعادة كتابة كبيرة في مرة واحدة.
كيف تعمل
text
Step 1: route all traffic through a facade/proxy to the monolith
Step 2: extract ONE capability → new service
Step 3: route just that path to the new service
Step 4: repeat; delete that code from the monolith
Client ─▶ [ Proxy ] ─┬─▶ /orders ─▶ NEW Orders service
└─▶ everything else ─▶ Monolith
