← Back

Modernising Legacy Software Without Rebuilding Everything at Once

TL;DR

Replacing the interface is easy to describe. Moving the business rules and live data safely is the harder job. Start with a migration slice you can actually finish.

Conceptual illustration for Modernising Legacy Software Without Rebuilding Everything at Once

Legacy system modernisation means changing software so it can remain maintainable, supportable and useful to the business. That may involve upgrading infrastructure, improving an existing codebase or replacing capabilities in stages. It does not automatically mean a complete rewrite.

The first decision is which business constraint you need to remove. Perhaps every release requires a weekend outage. Perhaps a discontinued component cannot be patched. Or perhaps a new sales channel cannot connect to the existing order system. Those are different reasons to invest, and they should produce different first steps.

A sensible migration plan names the capability being changed, the system that owns its data, and the evidence required before the old route can be retired. This guide uses an illustrative order-status service to make those decisions concrete. It is not a client case study.

Separate age from the reason to change

Old software can be valuable and dependable. New software can still be expensive to change. Describe the problem in operational terms rather than making the programming language the business case.

Collect examples: a release delayed by an undocumented dependency, a manual reconciliation after an overnight job, or an integration that requires staff to retype orders. Record frequency, impact and the people involved. These observations help distinguish a local defect from a structural limitation.

Also identify urgent support and security constraints. An unsupported dependency may need attention before a broader redesign. Do not postpone an immediate mitigation just because a larger replacement has been approved.

Approach Useful when Important limitation
Retain and improve The system meets needs but has specific defects Does not remove a genuinely obsolete dependency
Rehost or upgrade Hosting or runtime support is the main problem Business rules and coupling may remain
Refactor in place The code can be changed and tested incrementally Requires a reliable way to verify behaviour
Replace one capability A useful boundary can be isolated Coexistence has a real cost
Replace a bounded system Scope and migration can be controlled Cutover still needs rehearsed recovery

A full replacement can be reasonable. The important question is whether its boundary is genuinely understood, not whether “rewrite” is always good or always bad.

Map the paths that actually run the business

A source-code diagram is only part of the map. Include scheduled jobs, spreadsheets, reports, direct database readers and external partners. An apparently unused field may support a monthly finance export.

Follow one transaction from entry to completion. Who creates it? Which processes change it? Which reports interpret its status? Where does a user correct a mistake? Ask the staff who handle exceptions, not only the people who designed the happy path.

Document the rules that are easy to overlook: rounding, cancelled orders, partial fulfilment, historical customer IDs and manual overrides. A replacement that copies the visible screens but loses those rules may look complete while producing different business results.

Turn representative cases into repeatable checks. Preserve the observed output, explain whether it is intended behaviour, and distinguish known defects from requirements. Otherwise the new system may faithfully reproduce bugs or accidentally remove a necessary exception.

Four stages of an incremental migration: map dependencies, isolate one capability, compare real cases and retire the old route.
Illustrative migration design for order-status lookup; not a Pixelfield client case study or a guaranteed delivery sequence.

A worked migration slice: order-status lookup

Suppose a fictional distributor wants customers to see order status online. The existing system already manages stock, invoicing and fulfilment. Replacing all of it would make a simple customer need depend on a much larger programme.

A first slice could expose order status through a new read-only service. The old system remains the authority for order changes. The new service translates its statuses into a documented customer-facing contract.

Concern First-slice decision Evidence before release
Order ownership Existing system remains authoritative No second write path is introduced
Customer access New service checks order ownership Another customer's order cannot be retrieved
Status mapping Explicit mapping, including unknown values Cancelled and partially fulfilled orders tested
Freshness Show last refresh or fail clearly Delayed updates are visible and detectable
Failure Existing support route remains available Timeout and unavailable-source tests pass
Retirement Remove only the replaced lookup route Usage and support evidence show it is no longer needed

Consider order 1042, partially shipped but still awaiting an item. If the old system has separate shipment and completion fields, reducing both to “complete” would be misleading. The migration test should include that exact distinction.

Now imagine the source is unavailable. Returning yesterday's status without a freshness indicator makes the new service appear more reliable than it is. Decide whether to show a timestamped cached result or ask the user to retry. That is a product decision as well as an engineering one.

Use an incremental pattern only where it fits

Microsoft's Strangler Fig pattern describes gradually replacing parts of a legacy system. A routing or facade layer can direct selected requests to a new implementation while the rest remain on the old one. That requires a boundary through which the relevant traffic can actually pass.

A desktop application that writes directly to shared tables may not offer that boundary. You may first need an adapter, an API around a capability, or a change to the client. The name of the pattern does not make those prerequisites disappear.

Keep the migration mechanism proportionate. Adding a distributed service, a queue and a new database to move a small calculation can create more operating work than it removes. Sometimes a module behind an interface is the better first step.

The useful test is whether you can move one capability, observe it and reverse the routing without leaving the business in an undefined state.

Decide who writes each piece of data

Two systems writing the same business record create difficult questions. Which update wins? How are conflicts detected? What happens when one write succeeds and the other times out?

Avoid casually adding dual writes as a temporary bridge. Name the authoritative writer for each entity and stage. If replication is required, define its direction, expected delay, replay behaviour and reconciliation process. A copied database is not automatically an independent source of truth.

Schema changes also need a compatibility period. Parallel Change describes an expand–migrate–contract approach: introduce the new interface alongside the old one, move consumers, then remove what is no longer needed. For a field change, that means checking all readers before deleting the old representation.

In the order-status example, changing who reads the record is intentionally separate from changing who writes it. Moving both at once would enlarge the cutover and make failures harder to isolate.

Make rollback a data plan, not just a deployment button

Rolling back code is straightforward only when the old version can still understand the resulting state. If the new service has created records the old system cannot interpret, switching traffic back is not enough.

Write down what happens to transactions started during cutover. Identify which need replay, correction or manual review. Rehearse recovery with representative data and record the time and access needed.

Use a limited initial cohort where the architecture allows it. Compare outputs, error rates and business outcomes before expanding. Decide the stop conditions in advance: mismatched balances, missing orders or incorrect permissions should not wait for a general performance discussion.

A backup is useful, but restoring the whole database may discard legitimate work completed after it was taken. Explain that trade-off explicitly. The recovery plan must fit the business's tolerance for lost work and downtime.

Budget for the overlap and the final removal

During coexistence you may pay for two environments, adapters, duplicate monitoring and additional support. Include that overlap in the business case instead of treating it as free migration time.

Each temporary component needs an owner and a removal condition. “We will clean it up later” is how a migration becomes another permanent layer. Track the old jobs and consumers that still prevent retirement.

Measure progress by capabilities moved and dependencies removed, not just new code written. A polished new interface that still relies on every old component may improve usability, but it has not yet reduced the same operational risks.

For budgeting across implementation and ongoing support, use our custom software cost and ROI guide. Keep the migration assumptions separate from the expected benefit so both can be challenged.

What to ask for in the first proposal

Request a dependency map, a proposed first slice, representative behaviour checks, data ownership rules and a cutover rehearsal. Ask what would make the team recommend retaining the current component instead.

A proposal should also explain how business experts will resolve ambiguous behaviour. Developers can inspect code, but code alone cannot tell them whether an exception is a defect, a contractual requirement or an obsolete workaround.

Download the migration-slice worksheet and use it to scope one capability before estimating the whole programme. Our requirements gathering guide can help turn uncertain rules into reviewable examples.

Pixelfield's custom software development service can support the assessment and implementation. A useful first engagement should leave you with a smaller, clearer decision—not a promise to replace everything before you see any value.

Michal Vávra
Written by
Head of AI & Development

Michal has been with Pixelfield since September 2012 and has held technical leadership roles since 2017. He is the technical force behind our most demanding builds, combining AI expertise with the infrastructure and software architecture needed to make it work in production. His work spans LLM applications, multi-agent orchestration and complex integrations. He sets the engineering standards behind reliability, performance and scale, and guides the team through the decisions that determine how a system runs long after launch.