NEWSPOLITIQUE DE CONFIDENTIALITÉ

ARKIVE 96. TOUS DROITS RÉSERVÉS.

RETOUR

#SaaS

From MVP to scale: when to refactor and when to rebuild

How to tell whether an MVP needs targeted refactoring or a rebuild, and how to replace it gradually without stopping the business.

An MVP is built to learn quickly, so some of it will not survive growth. That does not mean it should be thrown away. In most cases the right move is to improve the weak parts one at a time while the product keeps running; a full rebuild is justified only in a few specific situations.

Symptoms worth acting on

  • Small changes take much longer than they used to.
  • Fixing one bug regularly creates another.
  • The same incidents repeat: slow pages, failed jobs, outages at busy times.
  • New developers need a long time to become productive.
  • The team avoids touching certain parts of the code.
  • A customer or investor review raises security or ownership concerns.

Refactor, replace or rewrite

  • Refactor. Restructure existing code without changing what it does. Right when the foundations are sound and the mess is local.
  • Replace a part. Rebuild one module, such as billing or reporting, behind the same interface. Right when one area causes most of the pain.
  • Rewrite. Start again. Right when the platform itself is the limit: a no-code tool that cannot do what customers need, an abandoned framework, or a data model that contradicts how the business now works.

Why full rewrites go wrong

A rewrite takes longer than planned, because the old system contains years of small rules nobody wrote down. During that time customers see no improvements, and the team maintains two systems.

Replacing a system piece by piece

  • Put the new code alongside the old and route one feature at a time to it.
  • Start with the area that hurts most or changes most often.
  • Migrate data in stages, and keep the ability to switch back.
  • Add automated tests around existing behaviour before changing it.
  • Retire each old part as soon as its replacement is proven.

Making room for it in the roadmap

Reserve a steady share of each development cycle for this work instead of pausing features for months. Tie each improvement to a business result: faster delivery in a given area, fewer incidents, a requirement from a large customer.

Before deciding

Ask for an independent code review if the only advice to rebuild comes from the team that would be paid to do it. A good review names what to keep.

The goal is a product that can keep changing. Whichever route gets there with the least interruption to customers is the right one.