Home / Blog / App Development

    Legacy App Modernisation: Rewrite, Refactor or Replatform?

    By Softworth Solutions · · 4 min read · For readers in UK, US, UAE

    Source code on a laptop screen while a developer works

    In short: Replatform when the code is sound but the infrastructure is failing, refactor when the business logic is valuable but hard to change, and rewrite only when the technology is truly obsolete or the system is small. For most large systems, the safest route is incremental: stabilise first, then replace module by module.

    Every ageing system has someone in the business who wants to rewrite it from scratch. It is an understandable instinct, and it is usually the riskiest option on the table. Let us look at when each path makes sense.

    What is legacy app modernisation?

    Legacy app modernisation is the work of moving an ageing application onto technology and structures that are easier to run, secure and change. Age alone does not make software legacy. It becomes legacy when changes are slow and risky, it runs on unsupported technology, or only one person still understands it.

    How do you decide between rewrite, refactor and replatform?

    You decide by finding where the pain actually is. Spend two to four weeks mapping modules and dependencies, measuring how long a typical change takes, checking for unsupported operating systems and frameworks, and finding the hidden reports and spreadsheets that feed from the database.

    Rewrite, refactor or replatform at a glance
    ApproachWhat changesChoose it whenTypical timeline
    ReplatformHosting and runtime, little codeInfrastructure is the problem1 to 4 months
    RefactorCode structure, tests, APIsLogic is valuable but brittle6 to 18 months, phased
    RewriteEverythingTech is obsolete or system is smallOften longer than planned
    Replace with SaaSConfiguration and data migrationA product already fits the process3 to 9 months

    Replatforming is often the right first step. Moving to a managed cloud platform or a supported runtime cuts risk and cost quickly, and gives you a stable base for deeper work.

    Refactoring keeps years of embedded business rules, which is its great strength. You add tests around critical flows, carve the monolith into modules and put APIs in front of the database so other systems stop reading tables directly.

    Why are full rewrites so risky?

    Because you must rediscover every rule the old system encodes while keeping it running, then migrate the data at the end. Hidden behaviour surfaces late, and the business waits months for value. Rewrites work best for small, well-documented systems, or when the business process has changed so much that the old model no longer fits.

    An illustrative UK distributor

    Consider a UK parts distributor running order management on a 15-year-old .NET Framework app on ageing servers. A rewrite quote comes in at 18 months. Instead, the team replatforms to managed cloud hosting in three months, adds tests around pricing and stock, then rebuilds the customer portal as a new service behind a routing layer. The warehouse module follows a year later. The business keeps shipping features throughout, and the old app is retired in stages.

    How does the strangler fig pattern reduce risk?

    The strangler fig pattern puts a routing layer in front of the legacy app and moves features to the new system one at a time. Each step is small and reversible, and the old system shrinks until it can be switched off.

    1. Put an API gateway or reverse proxy in front of the legacy application.
    2. Pick a module with clear boundaries and high business value.
    3. Build it in the new system and route its traffic there.
    4. Run old and new side by side and compare outputs for key calculations.
    5. Repeat, then decommission the legacy pieces.
    Source code on a laptop screen while a developer works

    What does modernisation cost, and how is AI changing it?

    For a mid-sized line-of-business app, an Indian delivery team might charge roughly INR 5 lakh to 25 lakh for a replatform (about GBP 4,500 to 23,000, USD 6,000 to 30,000 or AED 22,000 to 110,000), and from INR 25 lakh to well over a crore for phased modernisation. UK and US consultancies typically charge considerably more; UAE government and enterprise buyers often run formal tenders with fixed phases.

    AI coding assistants now help explain unfamiliar code, draft documentation of business rules and generate tests that capture current behaviour. They speed up analysis, but generated translations still need careful testing and domain experts to confirm the rules.

    Key facts

    • Martin Fowler named the Strangler Fig Application pattern in 2004 as a way to replace legacy systems gradually. (martinfowler.com)
    • Python 2 reached end of life on 1 January 2020 and no longer receives security fixes. (Python Software Foundation)
    • Microsoft publishes fixed support end dates for its products, including Windows, SQL Server and .NET, through its lifecycle policy. (Microsoft Learn)

    Avoid big-bang feature freezes, migrating without tests and forgetting hidden integrations. If cloud hosting is part of the plan, our cloud comparison for AI workloads may help. Softworth Solutions (SWS AI) runs focused modernisation assessments for organisations in the UK, US and UAE; contact us or see our work.

    Key takeaways

    • Diagnose where the pain is before choosing an approach.
    • Replatform first to stabilise; refactor or replace in phases.
    • Use the strangler fig pattern to keep risk small and reversible.
    • Treat AI as an analysis accelerator, not an automatic migration tool.

    Frequently asked questions

    Is a full rewrite ever the cheapest option?

    Occasionally, for small, well-understood apps or when a SaaS product can replace a custom system. For larger systems, rewrites usually cost more and take longer than expected.

    Can we keep adding features during modernisation?

    Yes, and you should. Incremental approaches let you build new features in the modern system while the old one runs, which keeps business support for the project.

    How do UAE government entities usually procure modernisation work?

    Typically through formal tenders with defined phases, deliverables and local presence or partnership requirements. Expect detailed compliance, security and data residency questions in the bid.

    Should modernisation mean moving to microservices?

    Only where it solves a real problem such as independent scaling or team ownership. A well-structured modular app on modern infrastructure delivers most of the benefit.


    Planning an AI or software project? Talk to our team for a free consultation and an honest estimate.

    Previous: AI Agent Security: Permissions, Sandboxing and Audit Trails
    Next: Building a Knowledge Assistant for Your Company Wiki

    Keep reading