strangler-fig પેટર્ન ક્રમશઃ સ્થાનાંતર કરે છે: તમે 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
