Article Web apps

Legacy web app: when do you modernize it and when do you rewrite it?

How to tell whether you can replace the app piece by piece without blocking orders, invoicing or production.

BreakingPoint · 8 min read
Legacy web app: when do you modernize it and when do you rewrite it?
In short

Modernize a legacy web app piece by piece if you can isolate and test one useful flow without blocking day-to-day work. If any change to orders, stock or invoicing affects all three, evaluate a rewrite with a transition plan.

Contents 7 sections
  1. What do I check before deciding whether to modernize or rewrite the app?
  2. When can I replace the ordering portal without changing stock management?
  3. When does it make sense to rewrite the app instead of changing it piece by piece?
  4. How do I compare cost and time to the first usable result?
  5. How do I make the transition if I cannot afford to stop operations?
  6. Where do I start to choose between modernization and rewrite?
  7. Frequently asked questions

You can modernize a legacy web app piece by piece if you can isolate and test one useful flow without blocking orders, invoicing or production. If any change to orders, stock or invoicing requires work in all three, evaluate a rewrite and decide how you will move to the new app before you approve the investment.

What do I check before deciding whether to modernize or rewrite the app?

Check which flows depend on each other, which connections to other systems must be preserved, and how easily you can move data without losing information you need every day.

  1. Follow a few operations from start to finish. Take an ordinary order, one changed after confirmation and one cancelled. See when stock is reserved, what data reaches invoicing, and, if you work to order, what triggers production. Include the people who handle exceptions in the discussion. A rule an operator applies by hand may not appear in the documentation, but it must be taken into account when the app changes.
  2. Inventory the integrations you must keep. An integration is a connection through which two systems exchange data automatically. For each connection, note what data moves, when it is sent and what the team does if it does not arrive. Also check the file exchanges employees do by hand between applications.
  3. Test the data move on a sample. Data migration means copying and adapting the data so it can be used in the new app. Pick open orders, their associated invoices and products whose codes changed over time. Do not just check whether the data can be exported. Check whether you can still link an invoice to its order and whether the balances match after import.

When can I replace the ordering portal without changing stock management?

You can replace the ordering portal separately if the new portal can use the existing stock management to check and reserve stock without duplicating those operations.

Say, for example, a distribution company receives 40 orders a day. Customers enter them in a portal that is hard to use, but the team works well with the current stock management. The company can rebuild the portal, and the old app can temporarily remain the place where available stock is calculated and reservations are recorded. Invoicing continues in the system already in use.

The important test is not whether the new portal displays the product list correctly. It is whether two orders for the last unit do not both get confirmation. You also check what the customer sees when stock management does not respond and whether cancelling an order releases the stock. If the portal can handle these situations without changing the rules in stock management and invoicing, you have a stage that can be delivered and verified separately.

When does it make sense to rewrite the app instead of changing it piece by piece?

A rewrite is worth evaluating when a change to orders, stock or invoicing requires work and testing in all three every time.

For example, changing the quantity after an order is confirmed may recalculate the stock reservation and the amount to be invoiced through the same operation in the old app. If you replace only orders, you must either keep that operation in the old app or rebuild the rules together in the new one. A temporary connection becomes expensive if it must be modified with every rule change and verified every time across all three areas.

The age of the app is not, by itself, a reason to rewrite. The argument is that separating it would take almost the same effort as rebuilding the complete flow, plus maintaining temporary connections. If you choose a rewrite, decide which working rules you keep and which you fix. The new app can be built and tested in stages, even if operations that depend on each other must move together.

How do I compare cost and time to the first usable result?

Compare the options for the same working result, including testing, migration and the cost of the period when you maintain both systems.

For example, define the result as taking in and processing orders for a group of customers through to invoicing. A portal where you can only enter an order is not yet a usable result if operators must copy it by hand to invoice it.

What you compare Gradual modernization Rewrite
Time to the first result Can be shorter if one flow can be used separately and the rest stays in the old app. Can be longer if the first usable flow requires the new app to take over orders, stock and invoicing together.
Testing You test what you changed and verify that connections to the parts you kept work after each release. You test the complete flow in the new app, including exceptions, and compare the results with those in the old system.
Data migration You can move data in stages, but you must check the links between moved and remaining data. You can move data that is linked together at once, but the import and checks must be repeated before launch.
Maintaining both systems Can last longer if you replace components in several stages. Include the cost of temporary connections. You pay for maintaining the old system while you build and test the new one. Include the period when you keep it available for rollback.

Ask for two estimates for each option: one to first use in daily work and one to retiring the old parts you want to replace. Note separately the time of the people in the company who check data and test orders, not just the development cost.

How do I make the transition if I cannot afford to stop operations?

Reduce the risk of downtime with a trial migration, clear acceptance criteria and a rollback plan that shows what you do with operations recorded after launch.

  1. Repeat the migration without touching the system used daily. For gradual modernization, try the path of orders from the new portal through existing stock management and invoicing on a copy. For a rewrite, import a copy of the data and try to continue work on open orders in the new app. Compare stock and invoicing totals and measure how long the import and verification take.
  2. Decide when you postpone launch or roll back. If the trial shows that an order can be duplicated or that an invoice ends up unlinked from its order, postpone launch until you fix the problem. For the actual launch, name the person who decides on rollback and establish how long it takes the team to execute it. If the final transfer requires a pause in data entry, decide in advance where you take orders in the meantime and how you enter them only once.
  3. Rehearse rollback for the option you chose. With gradual modernization, you can reopen the old portal and stop taking orders through the new one. Before resuming, you check which orders have already reached stock management and take in only what is missing. With a rewrite, rollback means reactivating the old system as the place of work and taking over the operations done in the meantime. If invoices were issued in the new app, decide before launch how you record them in the old records without issuing them again.

A backup copy is not, by itself, a rollback plan. It protects the data up to launch, but it does not tell you what to do with an order accepted or an invoice issued after that moment.

Where do I start to choose between modernization and rewrite?

Start with a short assessment and choose gradual modernization if you can isolate and test one useful flow without putting the rest of the operation at risk.

  1. Choose an important flow, for example the path of an order from confirmation to invoicing, and follow it together with the people who use it daily.
  2. Ask for a trial on copied data that shows what you can replace separately, which connections must be kept and what happens if you go back to the old option.
  3. If the trial confirms that the flow works separately, estimate the first modernization stage. If not, evaluate a rewrite with an explicit transition plan: what you move together, who validates the data, how you keep taking orders and when you roll back if problems arise.

Approve the assessment and the trial first, not the entire project. Their result must show you what you can change safely and what must stay working during the work.

Frequently asked questions

Do I need the source code to modernize the app?

Not necessarily. If the existing app allows authorized access to the data and operations you need, you can build a new component around it. If the connection is missing and must be added to the old app, check who has the right and the ability to modify its source code.

Do I have to move all old orders into the new app?

No, if historical data can be kept in an accessible archive and the new app does not depend on it for current work. Check which documents must be kept, how you will search them and what history you need for returns, complaints or invoices linked to orders still open.

Can I launch the new portal for just a few customers?

Yes, if you can identify unambiguously the orders from each portal and both use the same stock management for reserving stock. Choose a group small enough to verify the results by hand and include customers who change or cancel orders, not just simple cases.

What do I do if only one employee knows how to use the old app?

Follow them while they handle ordinary operations and exceptions, then note the steps and rules they apply. Ask a colleague to redo the operations following these notes. What they cannot reproduce must be clarified before the rules are changed or implemented in the new app.

Written by the BreakingPoint team

We build custom ERP systems, AI automation and bespoke business software.

Found it useful? Pass it on: LinkedIn WhatsApp
Next step

Let's see what you can replace without stopping work

Tell us which operations keep your app running and where the bottlenecks appear. We can start with a short assessment of one flow to see whether you can modernize it separately.

Get an estimate
Get an estimate