Legacy modernization, part 6: Safely retire the old order system
In this fictional shop, even on the day all new orders reach the new system, the admin feature that refunds last month’s orders or the month-end reporting batch may still use the old server. Before retiring the legacy system, check recent request counts and verify that even infrequent business operations can be completed on the new path.
1. Find remaining callers and permissions
Beyond requests visible in router logs, check database accounts, scheduled jobs, webhook endpoints, retry queues, and operator scripts. Rehearse tasks that are hard to wait for in normal operation, such as month-end closing and refunds on old orders, using representative data.
For each remaining dependency, record the existing caller, replacement path, result of the last run or rehearsal, and the person responsible for retirement. If external clients still need the old URL, assign an owner to the compatibility route that forwards requests to the new system. The public address can stay available after the internal server is shut down. Microsoft’s Strangler Fig pattern and compatibility adapter
2. Open the materials needed for recovery
Assemble order histories, closing reports, event and job offsets, the last deployment artifact, and restore instructions according to the retention scope. Record access permissions and deletion criteria. Have the person responsible restore a backup in an isolated environment, look up the cancellation history of a specific old order, and find the transactions behind the month-end figures. Record how long the restore took and which data could be queried to determine whether the records can be recovered within the time the business needs.
The restored data from this rehearsal supports investigation and recovery. Using it to overwrite current production data could lose transactions committed after cutover. If recovery is necessary, separately reconcile orders accepted and external operations initiated after the restore point.
Retirement runbook
| Stage | Action and exit criteria |
|---|---|
| Stop writes | Operations disables legacy writes, sends, and batches and reconciles work already in progress. Order creation, reads, cancellations, notifications, and reporting must work on the new path. |
| Operate with limited access | Handle remaining inquiries about old orders through approved read paths or retained records. The person responsible checks requests to the old system and permission errors. |
| Block access | Gradually revoke old accounts and block internal routes. If any consumer has yet to migrate, hold off on deletion and check the replacement path. Connect required compatibility routes to the new system. |
| Decommission | The business owner confirms that no business operations or external connections remain to be migrated. Operations confirms the restore rehearsal and retention criteria. Once everyone agrees on retirement, remove the old service and unused resources. |
The final check is simple. When a customer asks about an old order, the person handling the inquiry must be able to find the order, explain its cancellation, refund, and notification history, and check the report that includes the transaction through the new path. That is how the shop can keep handling orders after the old system is off.
Previous — Legacy modernization, part 5: Hand over writes for order creation and cancellation
Discussion