Codnit
Contact Start a project
Service category AI Development
Not sure what you need? 30 minutes with one of our engineers.
About UsWho we are and how we work. PodcastsConversations on building software. EventsTalks, meetups and workshops. BlogsEngineering notes and insights. GuidesPlaybooks for your next build. PricingFixed scope, fixed price. CareersJoin the team. We’re hiring. TechnologiesThe stack we build with. ReviewsWhat our clients say.
Talk to us hello@codnit.com 30-min intro Book a call →
Industry Fintech
Don't see your industry? Tell us what you're building.
Engineering

Modernising a monolith without a feature freeze

A practical playbook for replacing legacy systems while the business keeps shipping.

Robert Price Robert PriceCEO, Codnit · Sep 9, 2026 · 17 min read

Legacy systems are not a niche problem

Every established organization runs on software that was written for a different era. Billing engines from the 1990s. Inventory systems built before the cloud existed. Customer databases that have been extended so many times nobody fully understands them. These systems work, mostly. They also cost more every year to maintain, slow down every new initiative and carry risks that grow quietly in the background.

The U.S. federal government offers the clearest public data on the problem. According to the Government Accountability Office, the federal government spends more than $100 billion a year on IT, and agencies have typically reported spending about 80 percent of that on operating and maintaining existing systems, including legacy systems. For fiscal year 2025, about $83 billion, or 79 percent of planned IT spending across the 24 major agencies, was intended for operations and maintenance.

GAO’s July 2025 review examined 69 federal legacy systems and identified the 11 most in need of modernization, maintained by 10 agencies whose missions are essential to government operations. In its earlier 2019 review, GAO identified 10 critical legacy systems that ranged from about 8 to 51 years old and cost roughly $337 million a year to operate and maintain. Of the 65 modernization efforts reported in 2019, agencies had completed 28 as of February 2025, with 34 still underway and three not yet begun.

Private companies rarely publish equivalent numbers, but the shape is the same. The more budget goes to keeping old systems alive, the less is left for anything new. And the longer modernization waits, the harder and riskier it becomes.

Why big-bang rewrites fail

Faced with an aging monolith, the instinctive answer is a full rewrite. Freeze the old system, build a new one from scratch with modern tools, migrate everything over a weekend and switch it on. It is a clean, appealing story. It is also one of the most reliable ways to fail.

The problem is that legacy systems encode years, sometimes decades, of business rules that nobody wrote down. Edge cases for particular customers. Workarounds for old regulations. Calculations that someone tweaked in 2009 to fix a complaint. A rewrite team discovers these rules one at a time, usually late, usually after users report that the new system is wrong.

Meanwhile, the business does not stop. Requirements keep changing, competitors keep moving and the old system still needs fixes. Teams end up maintaining two systems at once, the rewrite drifts further from what the business needs and the go-live date slips. Research on large IT projects by McKinsey and the University of Oxford found that every additional year of planned project duration increased cost overruns by about 15 percent. Multi-year rewrites sit squarely in the danger zone.

When the switch-over finally happens, it is a single, enormous risk event. If anything important is wrong, everything is wrong at once.

“Big-bang rewrites fail in the same way every time. Replace the system one slice at a time instead.”

The strangler pattern

There is a better way, and it has a memorable name. The strangler pattern, named after strangler fig trees that grow around a host tree until they can stand on their own, replaces a legacy system gradually, one slice at a time, while the old system keeps running.

It works like this. First, we put a thin routing layer in front of the legacy system, so every request passes through a place we control. At first, the router simply forwards everything to the old system. Then we pick one slice of functionality, build it on the new stack, and change the router to send that slice to the new code. Users notice nothing, except perhaps that one part of the system got faster.

We repeat that process slice by slice. Each slice ships to real users before the next one starts, so problems are found while they are small. Over time, more and more traffic flows to the new system, and the legacy system shrinks. Eventually, nothing calls the old code anymore, and it can be switched off for good.

The beauty of the approach is that there is never a single high-risk go-live. There are dozens of small ones, each reversible, each measured.

  • Put a routing layer in front of the legacy system
  • Move one slice of functionality at a time to the new stack
  • Ship each slice to real users and measure it
  • Retire old code as soon as nothing calls it

Step one: map the system and its hidden rules

Before moving anything, we need to understand what the legacy system actually does, not just what the documentation says it does. Discovery on a modernization project is part archaeology and part interviewing.

We read the code, trace the data flows and catalogue every integration, including the batch jobs, file drops and scheduled exports that never appear in architecture diagrams. We instrument the system to see which features are actually used and how often. And we talk to the people who rely on it every day: operations staff, finance teams, customer service agents. They know where the bodies are buried, because they work around them.

The output is a map of capabilities, each with its business owner, usage, dependencies, data and known quirks. That map becomes the backlog for the modernization, and it is the single most valuable artifact of the project.

Step two: choose the order carefully

The order in which slices move matters enormously. A common mistake is to start with the easiest pieces to build momentum. That feels good, but it postpones the real risks until late in the project, when they are most expensive to address.

We prefer to move the riskiest, most valuable slice early, as long as it can be isolated. If the old system’s pricing engine is the thing that blocks every new product launch, we move pricing first. If a particular integration breaks every month and costs the operations team days of manual work, it moves early. Early slices prove the new architecture under real load and deliver visible value quickly, which keeps the business invested in the program.

We also look for natural seams in the system: boundaries where one capability talks to another through a narrow interface. Those seams are where the router can split traffic cleanly. Where seams do not exist, we sometimes create them inside the legacy system first, a small refactor that makes the next migration safer.

Step three: handle the data

Moving functionality is usually easier than moving data. Legacy databases are often shared by many parts of the system, full of historical quirks and essential to reporting and compliance. Data is where modernization projects quietly stall.

We use a few techniques to keep data moving safely. For each slice, we decide whether the new system will own its data outright or temporarily read from the legacy database. Where both systems need the same data during the transition, we use change data capture to keep them in sync in near real time. We run reconciliation jobs that compare results between old and new systems and flag any differences. And we migrate historical data in batches, validated against the source, rather than in one giant move.

For a period, the new and old systems often run side by side on the same inputs, with the new system’s results compared but not used. Only when the outputs match, or the differences are understood and accepted, does the router switch real traffic to the new code.

Keeping the business moving

The biggest advantage of the strangler approach is that the business never has to stop. Product teams keep shipping throughout. The key rule is that new features are built on the new stack wherever possible, not added to the legacy system.

That rule has a powerful effect. Every sprint, the new system grows and the legacy system shrinks, instead of both growing in parallel. Teams learn the new architecture by building real features with it. And the business sees improvements continuously, rather than waiting for a distant launch date.

We also keep the legacy system healthy during the transition. That means applying security patches, fixing critical bugs and keeping it stable, but resisting the temptation to add new capabilities to it. Every hour spent extending the old system is an hour that will need to be spent again on the new one.

Security and risk along the way

Legacy systems often carry security risks that grow over time: unsupported operating systems, outdated languages, libraries with known vulnerabilities and vendors who no longer provide updates. GAO has repeatedly highlighted these concerns in federal systems, noting that many of the most critical legacy systems rely on outdated languages and unsupported hardware and software.

A gradual modernization lets us reduce that risk step by step. Each slice that moves to the new stack lands on supported, patched infrastructure with modern authentication, logging and monitoring. The router itself becomes a useful security control, a single place to enforce authentication, rate limits and audit logging for both old and new systems. And because every change is small, security reviews are faster and more thorough.

Measuring progress honestly

Modernization programs are notorious for reporting activity rather than results. Lines of code migrated, services created and story points completed all look good on a dashboard and say little about whether the business is better off.

We track a small set of outcome metrics instead. The share of traffic and transactions handled by the new system. The number of legacy components retired. Change lead time, meaning how long it takes to get a change from idea to production, for both old and new parts. Incident rates and recovery times. And operating cost, including hosting, licenses and the engineering time spent on maintenance.

McKinsey’s Developer Velocity research found that companies in the top quartile of software capability grew revenue four to five times faster than those in the bottom quartile between 2014 and 2018, and scored 55 percent higher on innovation. Modernization is one of the most direct ways to move up that curve, and these metrics show whether it is working.

  • Share of traffic on the new system
  • Legacy components retired
  • Change lead time for old and new parts
  • Incident rate and time to recover
  • Total operating cost, including maintenance effort

A typical program, in phases

Every modernization is different, but most of ours follow a similar arc. Discovery and mapping take four to six weeks. The first slice, including the routing layer, monitoring and data sync patterns, usually takes two to three months, because it establishes the foundations every later slice will reuse. After that, slices typically move every few weeks, with the pace increasing as the team and the new platform mature.

We price each phase as a fixed-scope engagement, so the business can see value and make decisions at every step rather than committing to a single multi-year budget up front. That structure keeps the program honest and makes it easy to pause, reprioritize or accelerate as business needs change.

When a rewrite is the right call

We are not dogmatic. There are cases where a fresh build makes more sense than a gradual migration: very small systems that can be replaced in a few weeks, systems whose business purpose has changed so much that little of the old logic still applies, or platforms so locked down that a routing layer cannot be inserted. Even then, we try to run the new and old systems in parallel for a period and switch over in stages, rather than relying on a single cutover weekend.

The routing layer in practice

The routing layer is the piece that makes gradual modernization possible, so it is worth describing in a little more detail. For web applications and APIs, it is usually a reverse proxy or API gateway that sits in front of the legacy system. Every request passes through it, and simple rules decide whether a request goes to the old system or the new one, based on the path, the customer, a feature flag or a percentage of traffic.

For systems that communicate through messages, files or databases rather than web requests, the equivalent is an integration layer that intercepts those flows. Batch jobs are wrapped so their inputs and outputs can be redirected. Message consumers are duplicated so both old and new systems can process the same events during a transition. The principle is the same: create one place where traffic can be steered.

The routing layer also gives us a safety net. If a new slice misbehaves in production, switching traffic back to the legacy system is a configuration change that takes seconds, not a redeployment that takes hours. That ability to roll back instantly is what makes it reasonable to move real users onto new code early.

People and skills

Modernization is as much about people as technology. Many legacy systems are understood in depth by a small number of long-serving staff, and some rely on languages and tools that few younger engineers know. GAO has noted the same challenge in the federal government, where some agencies have had difficulty finding staff with the skills to maintain older systems.

We treat those long-serving experts as essential partners, not obstacles. They help map the hidden rules, review the behavior of new slices and validate reconciliation results. At the same time, the in-house team learns the new stack by building real features on it alongside our engineers. By the time the program ends, the client has a team that understands both the business logic and the new platform, which is the best protection against the next generation of legacy.

Cost: what to expect

Executives understandably want to know what modernization will cost and when it will pay back. The honest answer is that it depends on the size and tangle of the system, but the structure of the costs is predictable.

Early phases cost more relative to what they deliver, because they build the routing layer, data sync patterns, monitoring and deployment pipeline that every later slice will reuse. Later slices move faster and cheaper on top of that foundation. Savings arrive in stages: reduced hosting and license costs as legacy components are retired, fewer incidents and less manual work as fragile integrations are replaced, and faster delivery of new features once the most constrained parts of the system have moved.

The GAO data on federal spending is a useful frame for the alternative. When roughly four out of every five IT dollars go to keeping existing systems running, every legacy component retired frees budget for new work. Modernization is not only a cost. It is how organizations buy back their ability to invest.

Signs it is time to start

Most organizations know they have legacy systems. The harder question is when to start modernizing. These are the signals we see most often in organizations that waited too long.

  • Simple changes take weeks because nobody is confident about side effects
  • Only one or two people understand how critical parts of the system work
  • The system runs on software or hardware that vendors no longer support
  • Security reviews keep flagging the same unfixable issues
  • New products are delayed because the old system cannot support them

A short case example

One of our modernization clients ran their entire operation on a monolithic order management system built over fifteen years. Pricing, inventory, invoicing and reporting all lived in the same codebase and database. Releases happened once a quarter because nobody trusted the test suite, and a single bug in pricing could halt order processing for the whole company.

We started with Discovery and mapping, then put a routing layer in front of the order APIs. The first slice was pricing, because it blocked every new product launch and caused the most incidents. We rebuilt it as a separate service, ran it in shadow mode against live orders for three weeks to compare results, resolved every difference with the finance team and then switched traffic over gradually. Inventory followed, then invoicing.

Within a year, the client was releasing weekly rather than quarterly, pricing incidents had dropped sharply and new product launches no longer waited on engineering. The legacy system still handled some reporting, scheduled to move next, but it had shrunk to a fraction of its former size. At no point did the business stop shipping.

Governance for a multi-year program

Large modernizations can run for a year or more, which brings back the duration risk that the McKinsey and Oxford research warns about. The way to manage it is to make the long program a series of short, independently valuable projects, each with its own scope, price and success measures.

We run a quarterly steering review with business and technology leaders. Each review looks at the outcome metrics, decides which slices move next based on current business priorities and confirms the budget for the coming quarter. That cadence means the program can respond to change, such as a new regulation, an acquisition or a shift in strategy, without losing momentum or throwing away work already done. It also keeps leadership engaged, which GAO’s findings suggest is one of the most important factors in whether modernization plans are actually completed.

The bottom line

Legacy systems consume a large share of IT budgets and carry growing risks, as GAO’s federal data shows starkly. Big-bang rewrites promise a clean break but usually deliver delays, overruns and a single, enormous launch risk.

The strangler pattern offers a better path: map the system, move the riskiest and most valuable slices first, keep data in sync, build new features on the new stack and retire old code as you go. It is slower to describe and faster to deliver. Most importantly, it lets the business keep shipping the whole time.

If you are weighing a modernization, start with a map rather than a plan. Understanding what your system really does, and which parts matter most, is the step that makes every later decision easier and safer.

And if you would like help drawing that map, a short Discovery with our engineers is the simplest place to begin.

Robert Price Written by Robert PriceCEO of Codnit. Has shipped software for startups and enterprises across fintech, healthcare and retail.

Keep reading.

All articles →
Process · 15 min readFive gates: how we run every build Process · 15 min readWhy we fix the price before we write a line of code AI · 16 min readShipping AI agents to production without the hype