← All insights

Modernization

Modernizing a monolith without a big-bang cutover

A practical playbook for the strangler-fig pattern: where to cut first, how to keep data in sync, and how to switch traffic safely.

Big-bang rewrites fail for a simple reason: the business keeps changing while the new system is being built, so the target keeps moving. The strangler-fig pattern avoids this by replacing a legacy system piece by piece, with old and new running side by side until the old one can be switched off.

The idea is simple. Doing it well takes discipline. Here is the playbook we use.

1. Put a facade in front first

Before moving any functionality, route all traffic to the monolith through an API gateway or routing layer. On day one it forwards everything unchanged. This step is unglamorous, but it gives you the control point you need: later, moving a capability is a routing change, not a client change.

2. Choose the first domain carefully

Event-storming workshops with the people who run the business help find natural boundaries. For the first migration, pick a domain that has clear boundaries, real business value and few inbound dependencies. A good first cut builds confidence. A tangled one stalls the whole program.

3. Keep data in sync with change data capture

The hardest part is rarely the code. It is the data. During the transition, both systems often need the same records. Change data capture (CDC) from the legacy database into an event stream lets the new service build and maintain its own store without dual writes from application code. When the new service becomes the owner, the direction of sync is reversed for as long as legacy consumers still need the data.

4. Switch traffic gradually and reversibly

Route a small percentage of traffic, or a single customer segment, to the new service first. Compare results against the legacy path where possible. Every switch should be reversible in minutes through configuration, without a deploy. This is what makes zero-downtime cutovers routine instead of heroic.

5. Actually decommission

Programs often stall at 80%, leaving two systems to maintain forever. Track decommissioning as a first-class deliverable: remove dead code paths, retire tables and turn off infrastructure. The savings from switching things off often fund the rest of the program.

The takeaway

Strangler-fig migrations trade one large risk for many small, reversible steps. With a facade, a clear domain map, CDC for data and gradual traffic switching, a monolith that took a weekend freeze to release can become a set of services that ship daily.

SK

Written by

Sathvik K

Senior Architect / Development at Cartesian Corp. Leads hands-on engineering across backend, platform and DevOps, and sets the technical bar for every build.

Want to talk this through for your system?

Tell us what you’re building. A senior architect will reply within one business day.

Have a project in mind? I can scope it with you.