Most large organizations have at least one system they are afraid to touch, usually one that runs billing, policies or the warehouse. It was written decades ago in a language that few people learn today, by engineers who have since left, and it still works. That is what makes it difficult to replace, because it holds years of rules that are recorded nowhere else and the business depends on all of them, including some that look like bugs.
A full rewrite is the obvious response, in which the old system is frozen, the new one is built beside it and the switch happens over a weekend. Programs of this kind tend to fail in the same way. The business cannot really stop changing, so the new system ends up chasing a moving target, and because nothing is delivered until the end, the budget comes under question before anything is live. When the cutover finally happens, it runs into every undocumented rule at once.
We replace legacy systems incrementally. A routing layer is placed in front of the old application, and capabilities move behind it to new code one at a time, each verified against the old behavior before it handles real traffic. Every step is small enough to reverse, and the old system shrinks until what remains can either be switched off or is cheap enough to leave in place.
Challenges we address
The failures we are usually called in to fix
A rewrite that never reaches parity
The replacement program has been running for two years, and during that time the legacy system kept changing because regulators and customers did not wait. The new system is always a few months away from parity and has yet to process a single real transaction.
Rules that exist only in the code
Nobody can explain why a particular rounding step or date check is there. Some of these rules are obsolete and others are contractual obligations to a specific customer, so the source code is the only complete specification of the business, and the team has little confidence in its own reading of it.
The database is the integration layer
Other applications, reports and scripts read from and write to the legacy tables directly, so changing a column can break consumers that were never listed anywhere. The application cannot be replaced until its database has been separated from everything that depends on it.
The people who know it are retiring
The engineers who understand the system are close to retirement, and new hires are rarely keen to learn its language. Each time one of them leaves, knowledge that was never written down goes with them, which makes every later change more expensive and more risky.
A cutover weekend with no way back
The plan finishes with a single switch-over and a data migration that cannot be reversed once new transactions start to arrive. If something turns out to be wrong on Monday, the business has to choose between living with the problem and losing a day of trading.
Our approach
How the work runs, in order
Read the system as it runs
We study the code, the database, the batch schedules and the production logs to find out which parts of the system are used, how often and by whom. Old systems collect dead code and screens that are no longer opened, and identifying those early removes work from the plan before any of it begins.
Pin down current behavior
Before anything is changed, we record what the system does today using characterization tests, which pair real inputs with the outputs the old code produces for them. The tests make no judgment about whether that behavior is correct, and their purpose is to make any difference visible so that a person can decide what to do about it.
Put a routing layer in front
A facade or gateway takes over the entry points and at first passes everything through to the old system. After that, moving a function becomes a routing change that can be reverted quickly, and users keep the same front door for the whole program.
Move one capability at a time
We choose a slice with clear boundaries and real value, build it and run it in parallel with the old code on live inputs while comparing the results. Once the differences have been explained, traffic shifts over in stages, and ownership of the data for that slice moves along with it.
Retire what has been replaced
Each migrated function is switched off and deleted from the old system together with its jobs and tables, which keeps the estate from doubling in size. Your team then carries out later slices using the same method, with our role getting smaller as it goes.
Technical capabilities
What we design, build and operate
Legacy code and usage analysis
Static analysis, dependency mapping and production usage data, which together show what the system contains, which parts are live and where its natural seams lie.
Characterization testing
Automated tests built from recorded production inputs and outputs, which give code that has never had tests a safety net before anyone changes it.
Strangler routing and facades
A proxy, gateway or facade that routes each request to the old or the new code by a set rule, with traffic shifted in stages and rollback available immediately.
Parallel run and comparison
The old and new implementations are run on the same inputs and every difference is reported, so that parity is something we measure and can show.
Incremental data migration
Data is moved slice by slice, with change data capture keeping the old and new stores in step and reconciliation checks run at each stage.
Anti-corruption layers
A translation layer between the legacy data model and the new one, which stops the old naming and structure from spreading into the code that replaces it.
Replatforming and containerization
Moving an application onto a supported runtime, operating system or cloud platform with as little code change as possible, in cases where a rewrite cannot be justified.
Refactoring in place
Improving the structure, adding tests and upgrading frameworks within the existing codebase, for code that is worth keeping and whose only problem is its condition.
Where it applies
Business applications
Core system replacement
Policy administration, billing, order management or warehouse systems replaced one function at a time, while the business continues to make changes as usual.
Leaving the mainframe gradually
Workloads moved off a mainframe in an order based on business value and risk, while the remaining ones keep running until it is their turn.
Splitting a monolith where needed
Extracting the few parts of a large application that change most often or need to scale differently, while the stable remainder stays as it is.
Unsupported frameworks and runtimes
Moving off versions of a language, framework or database that have stopped receiving security patches, ideally before an audit or an incident forces the issue.
Removing direct database access
Replacing integrations that share tables with proper interfaces and events, which is the step that makes later changes to the system possible.
Deciding what to leave alone
Picking out the systems that are stable, inexpensive and seldom changed, where wrapping them and leaving them alone makes more sense than rebuilding.
In practice
Two situations this service is built for, and what we would do in each.
Insurance
A policy administration system replaced without a freeze
The situation
An insurer runs policy administration on a mainframe application written in COBOL. One replacement program has already been started and then stopped, after the new platform fell behind the product changes the business kept making, and the engineers who know the old code are a few years away from retirement.
What we would build
We would map the system by product line and transaction type, using production volumes to pick a first slice, such as quotes for one simple product. Characterization tests would be built from recorded transactions, and a routing layer would send that product's quotes to the new service, which would initially run in parallel with its outputs compared against the mainframe's. Policy data for the slice would be kept in sync through change data capture until the mainframe copy is retired.
What it is designed to change
The business would see value from the first product onward, and every step could be reversed. We would track the proportion of transactions handled by new code, along with the differences that parallel running uncovers before each shift of traffic.
Professional services
A billing system that other tools read directly
The situation
A professional services firm records time and issues invoices from a desktop application built many years ago on a framework that is no longer supported. Its reporting tools, the payroll export and several spreadsheets query the application's database directly, so the firm wants to replace it but cannot say what would break if it did.
What we would build
We would log database access to build an inventory of every consumer and the tables each one uses, and then move those consumers one at a time onto a small set of read interfaces and views with a stated contract. Replacing the application would start only after that, beginning with time entry behind a routing layer, while invoicing stays on the old system until a month-end run has been matched in parallel.
What it is designed to change
The firm would be able to change the application without breaking tools it did not know about. The figure to watch is how many consumers still read the legacy tables directly, and it has to reach zero before the old database can be retired.
Technologies
We work in your stack and recommend on fit. We resell nothing.
Typical legacy sources
COBOL and CICS on mainframe · RPG on IBM i · .NET Framework · Java EE · Oracle Forms · Visual Basic 6
Routing and traffic shifting
NGINX · Envoy · HAProxy · Kong · Amazon API Gateway · Azure API Management
The first migrated capability serves real users early in the program, which means progress is judged on software that is running in production rather than on a forecast.
Each step can be reversed
If a slice misbehaves, it is routed back to the old system while the problem is fixed, so the business never has to stake a weekend on a single cutover.
Rules written down as tests
Behavior that used to exist only in the legacy source code is captured in tests and recorded decisions that your current engineers are able to read.
Legacy costs that fall over time
As functions are retired, the licenses, hardware and specialist support that the old system needs are reduced in steps, so you are not paying for the old system in full while the new one runs beside it.
What you hold at the end
A map of the legacy system organized by capability and usage
Characterization tests that cover the current behavior
A routing layer that supports staged shifting and rollback
Migrated capabilities that are running in production
Reports on data synchronization and reconciliation for each slice
A plan that sequences the remaining slices
Runbooks for shifting, rolling back or retiring a slice
Questions buyers ask
Because the business cannot stop changing while the rewrite is under way, and because all of the risk lands on a single date. A full rewrite has to match a moving target and delivers nothing until the end, at which point the cutover runs into every undocumented rule. Incremental replacement delivers working parts early, allows each part to be checked against the old system on live inputs and keeps a way back open, which takes longer to explain but is much safer to run.
That depends on the size of the system and how tangled its data is, and any date given before someone has read the code is a guess. A two-week review produces the map and a sequenced plan, and getting a first slice into production is a reasonable goal for a build of about twelve weeks. From then on the pace depends on how many slices run at the same time, and you can pause between any two of them without losing the work already done.
That is the usual starting point. We build characterization tests from recorded production inputs and the outputs the system produces today, an approach that needs neither documentation nor any assumption about what is correct, since the tests describe behavior as it currently is. Where the old behavior looks wrong, we take it to the business owner and record the decision to keep or change it, so nothing gets fixed without someone agreeing to it.
In most cases it is. Code can be moved one function at a time, but data is shared, and the old and new systems have to agree with each other for as long as both are live. At every moment each slice of data has one owning system, the other side is kept up to date through change data capture, and the two are reconciled continuously. We avoid letting the application write to both databases itself, because a failure between the two writes leaves them out of step.
No, the target should be the simplest structure your team is able to run. In practice, for many systems that means one well-organized application with clear internal modules and a single database, which is much easier to operate than a fleet of services. We extract a separate service only where some part needs to scale, be released or be owned independently, since replacing an old monolith with a distributed system that is hard to debug leaves you worse off.