What the strangler fig pattern is
The strangler fig pattern is a way to replace a legacy system without rewriting it all at once. You build new components around the old system, route one piece of behavior at a time to the new code, and let the legacy core shrink until nothing depends on it and it can be switched off. Martin Fowler named it in 2004 after the fig vines that grow around a host tree and eventually stand on their own. The alternative it replaces is the big-bang rewrite: build the whole new system in parallel, then cut over on one nerve-racking day.
That's the definition you'll find in every architecture guide. What the guides rarely say is how to choose the next piece, or what the pattern feels like over years on a system the business cannot pause. I ran one for nine years, from 2014 to 2023, at Comview and then Calero MDSL, on a platform 100+ Fortune 500 clients used every day.
My thesis, offered as my own rule rather than established doctrine: pick each seam by who would complain first and whether that complaint is survivable, and don't count a service as extracted until it owns its data. Here is how that played out. The carrier integrations went first, because a broken AT&T or Verizon feed is a degraded integration and not a corrupted invoice. The billing and rating engines went last, once extraction was routine. The platform never went down in between.
The system
Every engineering leader inherits one eventually: the system that makes all the money and terrifies everyone who touches it. Mine was a telecom expense management platform serving 100+ Fortune 500 clients, companies auditing millions in telecom spend through software that had accumulated fifteen years of business logic, much of it written by people long gone, all of it load-bearing. The application code was one deployable. The data lived in one SQL Server database where every module joined against every other module's tables.
The standard temptations presented themselves on schedule. Rewrite it from scratch. Freeze it and build "v2" alongside. Both are the same mistake wearing different clothes: they assume you understand the old system well enough to replace it, and you don't. Nobody does. The monolith is the spec. So we took the slower road, incremental decomposition into Azure-hosted microservices, and the platform served clients every single day of it.
The monolith is the spec. You don't replace it. You interrogate it, one seam at a time.
Step one: extract along seams the business already recognizes
The textbook version of the pattern starts with a facade in front of the whole system. In practice the first question isn't where to put the facade. It's which piece to pull out first, because the first extraction is where the team learns the machinery and where a mistake is cheapest.
The first services we pulled out weren't the ones with the worst code. They were the ones with the cleanest business boundaries: vendor integrations. An API that talks to AT&T or Verizon or ServiceNow has a natural contract, an obvious owner, and a blast radius you can reason about. Each extraction taught the team the machinery, deployment pipelines, service contracts, monitoring, on a component where failure meant a degraded integration, not a corrupted invoice.
Only after the pattern was boring did we go after the scary interior: billing logic, rating engines, the code where fifteen years of edge cases lived. By then "extract a service" was routine, and routine is what you want when you're operating on the heart.
Step two: accept that the database is the real monolith
Splitting application code is the visible work, and it's the part the diagrams show. The hard coupling was in SQL Server, where every module joined against every other module's tables. A service with its own deployable but shared tables isn't strangling anything; it's a monolith with extra network hops.
Some of that we untangled with views and contracts, so a service read through an interface instead of reaching into another module's schema. Some we handled with selective offload to Azure SQL. And a lot of it we handled with plain performance engineering, because a query that's fast enough removes the pressure to redesign around it. I'd tell any team starting this journey: your service boundaries are fiction until the data respects them.
Step three: modernize the front end on its own clock
The strangler fig pattern is usually drawn as a back-end exercise, but the same move works on the UI, and it's where users actually see progress. We moved the UI to React in parallel, screen by screen, embedded inside the legacy application until enough screens existed to flip whole workflows. The legacy shell was the facade; the new screens grew inside it until they could stand alone.
Users got improvements quarterly instead of a promised someday. That mattered more than aesthetics: visible progress bought patience from clients and executives for the invisible progress underneath, internationalization, global billing compliance, the unglamorous machinery of a platform sold on trust.
How I chose the next seam
Architecture diagrams suggest seams by shape. I got better results asking three plainer questions about each candidate.
- Does it have a boundary the business already talks about, such as a carrier integration or a billing step?
- Who would complain first if it broke, and is that complaint survivable?
- How much of the database does it drag along?
A candidate that scored well on all three was safe to extract. A candidate that failed the third was a data problem wearing a service-boundary costume, and it waited until the data work was done.
How you know the strangler fig is working
Progress on a decomposition is easy to claim and hard to see, because for a long time the old system is still there and still big. The signals I trusted were boring ones: releases of the extracted services got smaller and more frequent, the monolith's release cadence did not get worse, incidents were traceable to one service rather than smeared across several, and the new pieces were being changed by people who had not written them. If those hold, the legacy core is shrinking even when no one has deleted a line.
What nine years teaches you
Big-bang rewrites fail for a reason that has nothing to do with technology: they defer all risk to a single moment, and the organization loses its nerve before the moment arrives. The strangler fig pattern inverts that. Risk is spent in small, recoverable amounts, and every month the system is slightly better than the month before. It's less heroic. Nobody gives conference talks about the rewrite that didn't happen. But the clients never noticed a thing, and that was the entire point.
When a rewrite is the right call
I am not claiming rewrites never work. A small system that the team understands completely, with a spec you can test against and a business that can tolerate a parallel run, can be replaced outright. The trouble starts when the system is large, load-bearing, and understood only through its behavior. That's the case where the monolith is the spec, and replacing it means first learning what it does, which you can only do by working inside it. The strangler fig pattern is how you work inside it without stopping the business.