Engineering

Legacy Modernisation: Refactor, Replatform or Rebuild?

Compare refactoring, replatforming, integration and rebuilding, with a staged replacement plan for legacy data and dependencies.

Purushottam Kumar Suman
Purushottam Kumar Suman
Founder & CEO, Drema AI
3 min read
Updated
Vintage Commodore computer with a CRT monitor

Choose a legacy modernisation approach from the constraint you need to remove. Refactoring changes internal structure, replatforming changes the operating platform, and rebuilding replaces functionality. A staged replacement can move selected capabilities while the remaining system continues operating. Each option still needs a plan for data, dependencies and acceptance.

CTA Background

Let’s plan your modernisation approach.

Bring your workflow, constraints and open questions. We’ll help you define the scope and work through the next decision.

01

Diagnose the constraint before choosing the project

Slow reporting, unsupported infrastructure and difficult business rules are different problems. A new user interface may not fix an expensive database query, while moving an application to new hosting may leave its change process untouched.

Record a baseline: incidents, blocked product changes, support burden, dependency risks and the workflows affected. Identify which outcomes would justify the investment. Without that baseline, a technically cleaner replacement can finish without resolving the original business complaint.

02

Use a decision matrix

ApproachStrongest reason to investigate itMain limitation to test
Refactor selected codeStructure blocks a known change or creates repeat defectsTests and boundaries may be incomplete
ReplatformHosting or runtime creates an operating constraintApplication behaviour may still need changes
Integrate around the systemA bounded new capability can use a supported interfaceLegacy support and constraints remain
Replace a capability graduallyA business boundary can be isolated and routedCoexistence and record ownership need design
Rebuild the whole productExisting foundations cannot support required outcomesHidden rules and migration scope can be large

Treat these as options to test, not automatic rankings. The appropriate choice can differ across capabilities in the same system.

03

Use the strangler pattern where a boundary exists

Microsoft's Strangler Fig guidance describes replacing functionality incrementally through a routing boundary while the legacy system handles what remains. That boundary must be feasible in your architecture; a label does not create it.

For a hypothetical order product, new reporting might move first while order entry stays in the old system. Confirm the authoritative records, acceptable replication delay and compatibility of identifiers. Avoid allowing both systems to edit the same data without a conflict policy.

04

Prove behaviour before retiring a path

Capture representative current behaviours, including awkward cases users depend on. Compare outputs where a parallel read is safe, and avoid duplicating external side effects merely to test the replacement.

Define a reversible traffic switch where possible. When records have changed in the new path, recovery must account for those writes. Retire the old capability after accepted evidence and consumer review, rather than when the new interface looks complete.

05

Modernisation questions

Is a rebuild always the cleanest option?

It can remove constraints, but it also requires rediscovering rules and moving data. Compare its total transition effort with targeted changes.

Can we modernise without stopping the business?

Sometimes. The required interruption depends on boundaries, data movement and operational constraints. Establish a target through assessment and rehearsal rather than promising zero downtime in advance.

Use the legacy integration guide for a bounded connection, or discuss the wider decision with Drema's enterprise software team.

Sources · last reviewed November 1, 2026

This article explains what to build, not legal advice. Rules change; confirm against the current official text before relying on it.

Purushottam Kumar Suman
Written by
Purushottam Kumar Suman
Founder & CEO, Drema AI

Founder and CEO of Drema AI. Builds AI systems, SaaS platforms and industry software — and writes about what actually survives production.

CTA Background

Got a problem like this one?

Bring it to a call with a founder.You will get a straight answer, including when the answer is no.

View Our Work
AI-First Engineering
Secure & Scalable
Built to Deliver Impact
Have a project in mind?Ask us here, we reply in minutes.