A legacy system modernisation strategy should replace business capabilities in small, reversible steps, not hold them back for a multi-year rewrite. The strangler pattern does this by routing selected work from the old system to new services while the rest continues to run. Start by mapping dependencies, choosing a bounded first slice and putting a routing facade in place; our platform engineering team helps technology leaders turn that plan into an executable architecture.
This guide explains the pattern from the basics, including how to handle shared databases, decide what to migrate first and prove a cutover safely. The goal is not to adopt microservices for their own sake. It is to reduce risk while improving the parts of the system that constrain your business.
What does a legacy system modernisation strategy actually do?
A legacy system is software that remains important to the business but is difficult, expensive or risky to change. It may use an older language or platform, but age alone does not make it a problem. A ten-year-old system with tests, clear ownership and manageable operating costs may be healthier than a newer application whose dependencies and data are poorly understood.
Modernisation means changing the way software is built, run or connected so it can meet current business needs. That could mean moving a database, replacing an application, improving interfaces, automating a manual process, or retiring software that no longer earns its keep. A modernisation strategy decides which changes matter, in what order, and how the business will operate during the transition; our cloud migration strategy guide details how to structure these multi-stage transformation roadmaps.
A monolith is an application delivered as one large unit, even if it contains many internal functions. Monoliths are not automatically bad. Their shared code and database can make early development simpler. They become hard to change when teams cannot safely modify one capability without understanding many others, releases require broad regression testing, or a fault in one area affects unrelated work.
The strangler pattern is an incremental way to replace a monolith. Martin Fowler named it after the strangler fig, a plant that grows around a host tree over time. In software, a new system gradually takes over selected functions while the old system continues to serve the remaining ones. Fowler's description of the Strangler Fig pattern captures the central idea: grow the replacement around the existing application, then remove the old parts as they become unnecessary.
This approach is useful when the existing system still supports essential operations and cannot be switched off in one move. It avoids a long period in which the organisation pays for a replacement but gets no production value until a single high-risk cutover. It does not remove the need for careful design. For a period, you will operate both old and new components, which creates extra work and demands clear ownership.
The first decision is therefore not which framework to use. It is whether the problem is worth solving, which capability should change first and what evidence would justify continuing.
Why do large rewrites create so much delivery risk?
A rewrite asks a team to reproduce current behaviour while also making the system better. The difficulty is that current behaviour is rarely fully documented. It lives in code, database routines, support runbooks, integrations and the habits of staff who work around the software every day.
A feature that appears simple in a screen can rely on a chain of hidden rules. For example, a customer address update might trigger a tax recalculation, a nightly export and a downstream notification. If a rewrite reproduces only what the screen shows, it may break an important process that nobody considered part of the feature.
A big-bang rewrite concentrates risk at the end. During development, the old system remains the source of truth, so the replacement may not receive real production traffic or operational scrutiny. The team can spend a long time building against assumptions. At cutover, it must move users, data, integrations and support processes together. When something fails, rollback may be difficult because the new system has already accepted changes the old one cannot interpret.
A 2026 Gartner announcement reported that more than 70% of mainframe exit projects initiated in 2026 would fail to produce intended business benefits, with overestimated tooling capabilities and legacy complexity among the issues cited. That is a specific forecast about mainframe exit projects, not a universal failure rate for all modernisation. It is a useful warning against assuming that a new tool or platform will make old dependencies disappear. Read the Gartner announcement in that context.
McKinsey describes technical debt as a drag on delivery and estimates that it can represent 20% to 40% of an organisation's technology estate value before depreciation. It also reports that 10% to 20% of budgets allocated to new product delivery can be diverted to managing technical debt. These are broad estimates, not a forecast for your company. The practical question is whether you can identify where the drag occurs in your own systems. See McKinsey's research on technical debt and technology value.
Incremental modernisation changes the shape of the risk. You can put one capability into production, observe how it behaves and decide whether to continue before you move the next one. You still need to plan for data migration, dual operations and failure recovery, but each release has a smaller blast radius. A blast radius is the amount of the business affected when a change fails.
How does the strangler pattern work in practice?
The pattern has three working parts: a routing facade, a replacement capability and a deliberate retirement process.
A routing facade is a layer in front of the old application that decides where each request should go. It might be an API gateway, reverse proxy or application-level router. An API gateway is a managed or self-hosted component that receives API requests and applies routing and security rules. A reverse proxy receives a request on behalf of another server and forwards it to the right destination.
At first, the facade sends all requests to the monolith. This can create a safe place to observe traffic and prepare routing rules without changing what users experience. Later, the facade directs a selected route, such as customer profile reads, to the replacement service. Other routes still go to the monolith.
A service is a software component with a defined responsibility and an interface that other components can use. A bounded context is a business area with a clear meaning and boundary, such as customer identity, claims intake or invoice reporting. In domain-driven design, this boundary helps teams avoid building one service that owns a confusing mixture of unrelated rules.
A typical flow looks like this:
- A user or system sends a request to the existing application address.
- The facade checks a route rule, such as the URL, customer identifier or feature flag.
- If the capability has not moved, the facade forwards the request to the monolith.
- If that capability has moved, the facade forwards it to the new service.
- The team records the outcome, checks service health and can route traffic back if needed.
A feature flag is a configuration switch that turns a feature or route on and off without deploying a new version. It can support staged releases, but it needs an owner, an expiry or review date, and a tested rollback path. A growing collection of forgotten flags becomes another source of complexity.
Microsoft's Strangler Fig guidance and AWS's modernisation guidance both describe routing selected functionality to a new implementation while the legacy application continues to operate. Their examples differ in platform details, but the architectural principle applies across cloud providers and on-premises environments.
The pattern is not a requirement to split every function into a microservice. A replacement can be a modular application, a serverless function, a managed product or a separately deployed service. Choose the simplest form that gives the new capability a clear owner and lets you release it independently.
Phase one: intercept traffic without changing behaviour
Place the facade in front of the monolith and initially route all requests through to it. The purpose is not to add a new point of failure without value. It is to establish control over routing and gather evidence before changing a business-critical path.
Use this phase to measure request volume, response times, error rates and traffic patterns. Trace which applications call the monolith, which routes are used and which scheduled jobs write to its database. A trace is a record of a request as it travels through multiple components. It helps identify where time is spent and where failures occur.
Set up a route inventory and an owner for each route. The inventory should include business purpose, callers, authentication method, data touched, downstream dependencies, expected service level and rollback method. Do not rely on URL paths alone. A single route can invoke many internal functions, while a background job may bypass the facade entirely.
Before moving any traffic, test that the facade can fail safely. Decide what happens if it is unavailable, if the new service times out, or if a route rule is wrong. Depending on the system, a safe fallback may be to send requests to the monolith, reject a write clearly, or queue work for later. Silent data loss is not an acceptable fallback.
Phase two: coexist with one replacement slice
Choose one bounded capability, build its new implementation and route only that capability to it. The monolith and replacement system now coexist. This is the phase where teams must deal with shared data, user identity, observability, support and release coordination.
Start with a capability whose boundary you can explain in business terms. A reporting extract, notification function or onboarding step may be easier to isolate than a tightly coupled billing engine. But a peripheral feature with no business value is not a good first move either. The first slice should teach the team something important and produce a visible improvement.
Run the new capability against realistic test data before sending live requests. Where appropriate, compare its output with the existing implementation. This is called shadow testing: the new service processes copies of requests or data but does not control the result seen by users. It can reveal mismatches, but it does not prove that live writes, support workflows or failure recovery will work.
Then canary the route. A canary release exposes a small, controlled portion of live traffic to the new implementation before increasing exposure. You might route selected internal users or a defined customer cohort first, then expand if the service meets agreed checks. Traffic percentages are not universal safety thresholds. Choose a cohort and ramp based on your traffic volume, impact of failure and ability to detect errors.
Use explicit measures to decide whether to continue: error rates, latency, data consistency, support incidents and completion of the business outcome. Set a stop condition before the release. For example, if a payment-related route produces a mismatch or exceeds its agreed error threshold, stop the ramp and return traffic to the existing path while investigating.
Phase three: remove the old capability
A slice is not complete when the new service accepts traffic. It is complete when the old implementation no longer owns the capability, data flows have a clear direction, dependent jobs have moved, and obsolete code and structures are removed.
First stop old writes for the domain. Confirm that integrations and scheduled jobs now use the new owner. Then remove dead routes, code paths, database triggers and tables when you have confirmed that no other domain depends on them. A dead code path is code that can no longer be reached but remains in the system. Leaving it in place preserves confusion and may tempt another team to rely on it.
Decommissioning also includes operational work: update support documentation, access controls, backup and recovery procedures, monitoring, vendor contracts and cost records. Keep an archive or approved retention path where legal or business obligations require it. Do not delete data simply because an application component has been retired.
Thoughtworks' discussion of the pattern is useful on the organisational side: the transition is a series of decisions about boundaries, ownership and incremental replacement, not just a proxy configuration.
How should you choose the first slice?
Score candidate capabilities against business value, boundary clarity, change pressure, dependency risk and reversibility. A useful first slice usually has a clear owner, a small number of callers and an observable outcome. It should be important enough to matter but not so critical that the first routing experiment could threaten the whole operation.
Use a simple qualitative matrix before committing engineering time:
| Candidate signal | What to look for | Effect on first-slice suitability |
|---|---|---|
| Business value | A bottleneck, customer problem, cost driver or delivery constraint | Higher value makes investment easier to justify |
| Boundary clarity | A distinct capability with identifiable inputs, outputs and rules | Clearer boundaries reduce accidental scope growth |
| Dependency load | Number and complexity of callers, shared tables and batch jobs | Fewer or better-understood dependencies reduce migration risk |
| Change pressure | Frequent changes, high support load or a scaling constraint | A capability that needs change can show a practical benefit |
| Reversibility | Ability to route traffic back and preserve valid data | Strong rollback options lower release risk |
| Learning value | Whether the slice tests important architecture assumptions | A useful first slice builds knowledge for later work |
Do not turn the matrix into a false-precision score. A weighted score can help compare candidates, but it cannot replace engineering investigation. If two candidates look similar, choose the one with clearer ownership and better rollback options.
Consider a mid-market insurer with a monolithic policy administration system. This is a hypothetical example, not a PADISO client. The team finds that reporting extracts are slow to change and depend on a subset of policy data. It considers three options: rebuild the rating engine, replace the customer portal, or move reporting extracts to a new read service. Our work in embedded analytics shows that separating reporting read paths from transactional databases frequently provides early delivery momentum without risking transaction integrity. The rating engine is central to pricing and has many hidden rules. The portal is customer-facing and may involve many workflows. Reporting might be a suitable first slice if the team can trace its data sources, validate output with finance and operations, and keep the existing system as the write owner during the first stage.
This does not mean reporting is always the right answer. If the reporting tables are shared by many processes and their meaning is inconsistent, the work may expose a deeper data ownership problem. In that case, start with inventory and data definitions before promising a new service. The right slice is the smallest capability that proves an important assumption without hiding its dependencies.
Avoid two common mistakes. First, do not choose the most tangled, highest-risk core as the first migration simply because it is the biggest source of frustration. Second, do not choose a trivial component that proves only that the team can deploy a service. The first move should produce both learning and business relevance.
How do you handle a shared database during migration?
A shared database is often the hardest part of strangling a monolith. Many older applications let different domains read and write the same tables. This creates implicit contracts: one component depends on a column or database trigger another component owns, even if no API or documentation says so.
The long-term aim is clear ownership. Each capability should have an authoritative place to write its data. But you do not need to move every table on day one. Begin by mapping who reads and writes the data, what constraints protect it, and which jobs or reports depend on it. Then choose a transition that avoids two systems making conflicting updates.
Change Data Capture, or CDC, is a way to observe database changes and publish them to other systems. CDC tools read the database's transaction log, which records committed changes, and turn those changes into events. For example, a PostgreSQL write-ahead log records database changes so the database can recover after a failure. A CDC connector can read that log and send change events to a message broker or another service.
An event is a record that something happened, such as CustomerAddressChanged. A message broker receives and delivers events between systems. Apache Kafka is one example. Debezium is an open-source CDC platform that can capture changes from supported databases. The supplied research notes identify Debezium and Kafka as possible components; whether they fit depends on your database, operating model, security needs and support capacity.
CDC can keep a new service's read model up to date while the monolith remains the writer. A read model is a representation of data optimised for a particular query or service. This can reduce risky direct reads from the old database, but it introduces delay and operational complexity. The new system may briefly be behind the source, so the business must decide whether that delay is acceptable.
A safer transition often looks like this:
- The monolith remains the single writer for the data.
- CDC captures committed changes and delivers them to the new service.
- The new service applies changes idempotently. Idempotent means that processing the same event more than once does not create an incorrect duplicate effect.
- The team compares records and business outcomes between the old and new representations.
- After validation, the new service becomes the writer for its domain.
- If legacy consumers still need data, publish changes back through a controlled compatibility path while those consumers move.
- Remove the old table or write path only when all dependencies are identified and retired.
The exact sequence depends on the application. Do not assume you can simply reverse the event flow. If the old and new services both write to the same business data, conflicts and ordering problems can arise. Pick one authoritative writer for each domain at each transition stage. A distributed transaction, which attempts to make changes across multiple independent systems succeed or fail together, can be costly and difficult to operate. Avoid relying on one unless the business need and platform support justify it.
An outbox pattern is another option. The application writes its business change and an event record to the same database transaction. A separate process reads the outbox and publishes the event. This avoids the classic dual-write problem where the application updates its database successfully but fails to publish the corresponding message, or publishes the message even though the database transaction rolls back.
CDC implementation checklist
Before you put CDC into production, confirm the following:
- You know which system owns each field and which system is allowed to write it.
- The database log retention period is sufficient to recover from a consumer outage.
- The connector can resume safely after a restart and its credentials have least-privilege access.
- Events have a stable identifier, ordering expectations and a documented schema.
- Consumers can handle duplicate delivery, delayed events and replay.
- You monitor connector lag, failed events, queue depth and data mismatches.
- You have a way to compare source and target records without exposing sensitive data unnecessarily.
- You have tested a full rebuild or replay, not just the happy path.
- You know how to stop writes, pause consumers and restore the prior route without losing committed work.
- Privacy, retention, backup and audit requirements have been reviewed for both systems.
This checklist is deliberately operational. CDC is not just a library choice. It is a production data pipeline that needs an owner, monitoring, recovery procedures and a clear business definition of acceptable delay.
What should a 90-day plan deliver?
A 90-day plan is a way to limit the first investment and create evidence for the next decision. It is not a promise that a complex monolith will be modernised in 90 days. Choose a narrow slice and define what will be true at the end of the period. If the first capability needs more discovery, the right result may be a validated map and a decision not to migrate it yet.
| Period | Main work | Evidence to produce | Decision at the end |
|---|---|---|---|
| Days 1 to 30 | Map routes, callers, data owners, batch jobs and operational risks. Choose a candidate slice. Define measures and rollback. | Dependency map, route inventory, baseline service measures, slice brief and risk register | Is the boundary understood well enough to build, or is more discovery needed? |
| Days 31 to 60 | Put the facade in place or validate an existing gateway. Build the replacement path and data flow. Add observability and automated tests. | Routing tests, CDC or outbox proof, reconciliation plan, runbooks and security review | Can the new path run safely in a test or shadow environment? |
| Days 61 to 90 | Shadow or canary the capability, inspect results, fix mismatches and confirm support readiness. Retire a narrow old path if evidence allows. | Release evidence, measured error and latency results, data checks, rollback test and decommission plan | Expand, hold, roll back or select a different slice? |
During the first month, interview the people who operate the system as well as the people who build it. Ask support staff which failures recur, finance which outputs must reconcile, and business owners which workflows cannot stop. Put findings in a dependency map rather than relying on workshop notes alone.
In the second month, keep the first implementation deliberately narrow. Build the facade route, service health checks, logs and traces. Agree who receives an alert and what action they take. If the data path is uncertain, prove it in a non-production environment with realistic volume and failure scenarios before sending live changes.
In the final month, use controlled exposure and compare outcomes. Keep the release reversible. Capture a decision record that explains what was tested, what evidence was observed, what remains unknown and who approved the next step. This makes it easier for executives and future teams to understand why the migration is proceeding or pausing.
A 90-day board update should show more than the number of services created. Report the capability moved, the old and new operating costs that can be measured, the user or operational problem addressed, remaining dependencies, risks, and the next decision. A route moved without the old path being retired is progress, but it is not the same as a completed migration.
How do you make the case for the transitional cost?
For a period, you may pay to maintain the monolith and build, run and support its replacement. This transitional tax is real. It can include gateway costs, data pipelines, duplicated monitoring, extra testing, staff training and on-call coverage. The plan should identify which costs are temporary, which are permanent and when each old component is expected to stop costing money.
Compare options using total cost of ownership, not only build estimates. Total cost of ownership includes the cost to develop, operate, secure, support and eventually retire a system. Include licence and infrastructure costs, incident response, specialist skills, release coordination, compliance evidence and the opportunity cost of work delayed by the current system.
Do not treat estimates in broad industry reports as your business case. McKinsey's research can help explain why technical debt matters, but your board needs local evidence: time spent on manual workarounds, the number of systems affected by a release, recurring support issues, the cost of a platform nearing end of support, or the commercial impact of a change that cannot be delivered on time.
Build the legacy modernisation business case around staged decisions. Fund discovery and the first slice with an agreed limit. At the next checkpoint, continue only if the evidence supports it. Show the cost of maintaining the old and new paths during transition, plus the expected cost removed when a specific capability is decommissioned. Do not count the same saving twice, and do not claim a run-cost reduction before contracts, infrastructure or support obligations have actually changed.
A useful board view separates three types of value:
- Risk reduction: fewer unsupported components, clearer recovery paths or reduced dependence on a scarce skill.
- Delivery capacity: less time spent tracing dependencies or coordinating releases across unrelated areas.
- Business change: a customer, operational or product improvement that the old system made difficult.
For organisations covered by APRA requirements, resilience is part of the business case. APRA's CPS 230 Operational Risk Management information sets out requirements for operational risk and service provider management. CPS 230 came into force on 1 July 2025, with transition arrangements for existing service provider contracts extending to 1 July 2026, according to APRA's guidance. As that transition date has passed, regulated organisations should confirm their current obligations with their compliance and legal teams rather than relying on a technology programme to interpret the standard; MinterEllison's CPS 230 compliance roadmap outlines the key governance expectations and contractual milestones.
Modernisation can support resilience by improving recovery, reducing single points of failure and making dependencies visible. It does not make an organisation compliant by itself. Record the operational service at risk, its tolerance for disruption, the dependency being changed, the recovery test and the accountable business owner. For financial services teams, our financial services technology work provides relevant Australian context.
How do you stop a half-strangled monolith from becoming permanent?
The common failure mode is to route a few features to new services, then move the team to another priority. The organisation ends up with more systems, more integration points and no reduction in the old system's footprint. Avoid this by treating decommissioning as part of every slice, not a later clean-up project.
Before building, write down what will be removed when the migration succeeds. That might include a route, a scheduled job, a table, a database trigger, a batch export or a licence. Name the owner and the conditions for removal. Include removal tasks in the delivery plan and release definition of done.
Track migration progress by business capability, not by service count or percentage of code moved. For each capability, record the current owner, target owner, data authority, callers remaining on the old path, operational status and planned retirement date. A capability is not transferred if the new service is live but the monolith remains the writer and all users still depend on old behaviour.
Set a time to review every transitional component. If the old path cannot be removed, state why: an un-migrated consumer, legal retention requirement, unclear data ownership or a feature that remains in use. Assign an action to resolve the blocker. This turns the transitional tax into a visible portfolio rather than invisible permanent overhead.
When is a rewrite still the right choice?
An incremental approach is not always best. A rewrite can make sense when the application is genuinely small and isolated, when its behaviour is well specified, or when an external deadline forces the underlying platform to be retired. The decision depends on whether the team can reproduce and verify the necessary behaviour within a contained scope, not on an arbitrary line-count threshold.
A rewrite is more credible when you can answer these questions:
- Can you list the complete inputs, outputs, rules and integrations?
- Can you test the replacement against representative historical cases?
- Can you move or transform the data without losing required history?
- Can you run both systems or otherwise verify results before switching?
- Is the delivery window short enough that business needs will not drift during the build?
- Is there a tested fallback if the new version fails?
If the answer to several questions is no, consider a smaller first slice or an interim step that improves visibility and interfaces. A rewrite may still be necessary, but it needs a plan for discovering undocumented behaviour. Replacing a system because it is old, without understanding what it does, is not a strategy.
There is also a middle option: modernise legacy software without a rewrite by restructuring the monolith internally before extracting a service. Modularisation means making boundaries explicit within the existing application while keeping one deployable unit. It can reduce accidental dependencies and prepare a later extraction. This can be a sound choice when a facade would add more operational complexity than value, or when the team cannot yet separate data ownership safely.
What should the CTO measure as the migration progresses?
Measure business outcomes and system health together. If you only track delivery speed, you may miss reliability problems. If you only track technical indicators, you may finish an elegant migration that has no business value.
A practical scorecard can include:
- Capability progress: which named business functions have changed owner, and which are still served by the monolith.
- Change effort: the lead time and coordination required for a defined change before and after the slice moves.
- Reliability: availability, error rates, recovery time and failed or delayed data events for the affected path.
- Data quality: reconciliation differences, duplicate events and the time required to resolve mismatches.
- Cost: additional transition spend, ongoing run costs and costs actually removed through decommissioning.
- Risk: unresolved dependencies, unsupported technology, access-control gaps and recovery test results.
- Adoption: whether users and downstream systems have moved to the new capability as intended.
Set baselines before migration. A baseline is a measured starting point used to compare later results. Without one, a team may say a service is faster or cheaper without being able to show what changed. Choose a small number of measures that can be collected consistently. Do not create a reporting programme so large that it consumes the work it is meant to evaluate.
Review measures with both engineering and business owners. For example, a lower response time is not a success if the new system returns stale information that causes operational rework. A new service with a higher cloud bill might still be justified if it removes a larger licence or support cost, but the comparison needs to include all relevant costs and actual usage.
Where does PADISO fit?
We help technology leaders map legacy dependencies, choose a migration boundary and design the routing, platform and delivery controls for incremental modernisation. Our enterprise architecture and platform engineering service can support the technical plan, while fractional CTO leadership can help align sequencing, governance and investment decisions. A practical first step is a focused assessment of one system and one candidate slice, with a clear decision on whether to proceed, investigate further or choose another approach.
If you are deciding where to start, write down one business capability that is hard to change, its callers and data dependencies, and what a safe rollback would require. Then use that evidence to scope the first investigation. For a broader view of technology priorities and capability gaps, take PADISO's AI readiness test; for support with a modernisation decision, contact our team.