รูปแบบ strangler-fig ย้ายอย่างค่อยเป็นค่อยไป: คุณห่อ monolith ด้วยเลเยอร์การกำหนดเส้นทาง สกัดความสามารถหนึ่งครั้งเป็นบริการ และเปลี่ยนเส้นทางการรับส่งข้อมูลไปยังมัน — จนกว่า monolith จะ "ถูกสำลัก" ไป ไม่มี การเขียนใหม่ครั้งใหญ่
วิธีการทำงาน
text
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
