ousspero / Software engineering

Plan a legacy migration without losing business rules

Engineering guide · Updated 7 November 2026

A migration can look successful in a demonstration and still fail during a real working day. A screen may render correctly while applying a different rounding rule, losing a rarely used filter, or changing which users can approve a record. The first task is to identify the behavior that the business depends on.

1. Start with a workflow, not a framework

Choose one complete workflow, such as finding an event, updating its details, and viewing the result. Write down who performs it, which records change, and what happens when a request is rejected. Include permissions, validation, date handling, and exports. Treat the existing application as evidence, but ask the people using it which behaviors are intentional and which are defects.

For example, a tournament administration screen might let an operator edit an event until registration closes. A replacement that only checks whether the event exists has missed a business rule, even if every field matches the old screen.

2. Choose a small, reversible slice

Prefer a workflow with a clear boundary and limited dependencies. A read-only event search is usually easier to introduce than the payment settlement process. Route a controlled group of users to the new experience while leaving the old route available. Define who can switch traffic back and how quickly that can happen.

Keep data ownership explicit. If both applications can update the same record, decide where validation runs and how concurrent edits are handled. Avoid independently reimplementing the same rule in two places without a reconciliation plan.

3. Compare observable behavior

Create a short set of representative records: an ordinary record, an empty result, a boundary date, and a restricted record. Compare the old and new outputs for those records. Where personal information is involved, use anonymized or synthetic test data.

4. Make the release decision measurable

Agree on acceptance criteria before deployment. Measure response times under comparable load, record failed operations, and check the data written by the new workflow. A rollback plan must cover data changes as well as application files: restoring an old executable will not reverse a destructive database migration.

Expand the migration when the first slice is stable. This approach takes more discovery than a screen-by-screen rewrite, but it makes the risks visible while they are still small.