Staged migration of a card payment platform off a legacy monolith
A payment processor was running card authorization, settlement and reconciliation on a fifteen-year-old Java monolith and an on-premise Oracle database. Touchlane migrated it to AWS in controlled waves — authorization traffic never stopped, and each wave shipped with a tested rollback path.
- Legacy Migration
- 2026
- Industry: Fintech
Initial Task
Description
The platform worked, but it had become expensive to change. Logic lived partly in Java and partly in PL/SQL, the engineers who wrote it had left, automated tests barely existed, and the documentation no longer matched the system. Two earlier rewrite proposals had stalled: leadership would not approve a rebuild of a system clearing live card traffic on the strength of an estimate.
Business requirements:
- Migrate without interrupting authorization traffic, which runs 24/7 under a latency SLA
- Keep PCI DSS compliance intact throughout, with evidence auditors could accept at every stage
- Make each stage reversible, so a decision to stop would never leave the platform stranded between two systems
Touchlane took the migration end to end — assessment, roadmap, wave-by-wave implementation and decommissioning — alongside the client’s platform team, who stayed on day-to-day operations.
Technology stack
Challenges
Business challenges
1/ Nothing could go down. An outage on the authorization path is measured in declined transactions, not in minutes.
2/ Leadership needed proof before budget — the approach had to be demonstrated on real code, not described in a proposal.
3/ PCI DSS scope had to be controlled deliberately; a migration that quietly widened the cardholder data environment would cost more in audit work than it saved in engineering.
Technical challenges
1/ Business logic was split between Java and PL/SQL with no reliable map of which path handled what. Behaviour had to be captured before it could be moved.
2/ Any new service in the authorization path had to match legacy response time, not approach it.
3/ Settlement and reconciliation data could not be cut over in one window.
Process
Phase / 01.
Two-week assessment
We analyzed the codebase, dependencies and data model, using AI for the parts that do not scale by hand — call graphs across Java and PL/SQL, dependency mapping, and a first pass at which modules touch cardholder data.
-
Senior engineers reviewed that output and turned it into three deliverables: a PCI scope map, a per-component strategy (rehost, replatform, refactor or rebuild, chosen component by component), and a phased roadmap with rollback requirements written per wave.
-
The assessment also produced a working prototype on one representative component, so the approach was proven on the client's own code before the first wave was approved.
Phase / 02.
Migration in waves
Each wave shipped with a Safety Pack: rollback path, critical-flow regression tests, monitoring and post-migration validation.
-
1/ Peripheral services first
reporting and the merchant portal backend replatformed to AWS. Outside the cardholder data environment, so the pipeline, monitoring and rollback procedure were proven before the authorization path.
-
2/ The authorization path
the new service ran in shadow mode against live traffic, with responses compared automatically against the legacy system. Traffic was cut over merchant segment by merchant segment behind feature flags, latency tracked against the legacy baseline at every step.
-
3/ Data and business logic
settlement and reconciliation moved under dual-write with continuous reconciliation. PL/SQL logic was lifted into Java only after AI-assisted test recovery produced characterization tests from captured production traffic, locking in behaviour — including undocumented edge cases — before anything was rewritten. Documentation recovery ran alongside.
Phase / 03.
Decommissioning and handover
Legacy components were retired only after their replacement had run in production through a full settlement cycle. Each stage carried 30 days of post-release support at no extra cost, covering defects, stability and performance issues surfacing after go-live.
Overall Result
The platform moved off the monolith in stages, with no downtime on the authorization path and a tested rollback available at every wave. PCI DSS scope narrowed, because the migration was planned around the scope map rather than the org chart. Authorization latency held against the legacy baseline, and reconciliation moved from a nightly batch to a continuous process. The client’s team came out with regression tests and documentation the legacy system never had, and owns all code and IP.