The strangler-fig pattern माइग्रेट वृद्धिशील रूपमा गर्छ: तपाईं monolith को वरिपरि एक routing layer मा लपेट्नुहुन्छ, एक पल मा एक क्षमता एक service मा निकाल्नुहुन्छ, र यसमा ट्राफिक पुनर्निर्देशन गर्नुहुन्छ — जब सम्म monolith "strangled" हुन्छ। त्यहाँ कुनै big-bang rewrite छैन।
यो कसरी काम गर्छ
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
