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
