strangler-fig pattern بتدریج منتقل کرتا ہے: آپ monolith کو ایک routing layer سے لپیٹتے ہیں، ایک وقت میں ایک صلاحیت کو service میں نکالتے ہیں، اور اس کی طرف traffic کو ری ڈائریکٹ کرتے ہیں — جب تک 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
