Strangler-fig నమూనా దశలవారీగా మార్చుకుంటుంది: మీరు monolith ను రూటింగ్ లేయర్ తో చుట్టుకుని, ఒక్క సామర్థ్యాన్ని ఒక్కసారిగా సేవలో తీసి, ట్రాఫిక్ ను దానికి మళ్లిస్తారు — monolith "ఆఘటన" వరకు. కోడిలో పెద్ద పునర్వ్రాయ్ నిల్లదు.
ఇది ఎలా పనిచేస్తుంది
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
