All posts

Moving Payment Workloads to a Nigerian Cloud Without Downtime

By Fola Oladipupo, Techera · · 5 min read

Share

For a payment company, downtime isn't an inconvenience. Every minute offline means failed transactions, angry customers and, in the worst case, money in the wrong place. So when data localisation means moving payment systems to Nigerian infrastructure, the question everyone asks is: can we do this without going down?

Usually, yes, or close to it. But "without downtime" comes from careful planning and rehearsal, not from a clever tool. Here's how a well-run migration works.

Step 1: Know exactly what you're moving

Every migration surprise traces back to something nobody listed. Before you plan anything, you need:

  • An inventory of applications, databases, queues, caches, file stores and scheduled jobs
  • A dependency map: what calls what, including external APIs, switches, card schemes and SaaS tools
  • Data volumes and change rates for each database
  • Recovery targets (RTO and RPO) for each system, agreed with the business

If you haven't done this yet, start with our guide to building a data residency inventory.

Step 2: Choose the right approach for each system

Not every system should move the same way.

Approach What it means When it fits
Rehost ("lift and shift") Move as-is to equivalent infrastructure Stable systems, tight deadlines
Replatform Move with modest changes, e.g. onto containers or a managed database When the move is a chance to simplify operations
Re-architect Redesign significant parts Systems with deeper problems, when time allows
Replace Switch to a different product, often SaaS hosted locally Commodity tools with local alternatives

The trade-off: rehosting is fastest and least risky in the short term, but carries old problems into the new environment. Re-architecting fixes more but takes longer and adds risk. Against a fixed deadline, most organisations rehost or replatform critical systems first and improve them afterwards.

Step 3: Build the target environment properly

Build the landing zone before moving anything:

  • Networking, including private connectivity between old and new environments
  • Identity and access, with multi-factor authentication for administrators
  • Encryption at rest and in transit, with keys you control
  • Monitoring, logging and alerting, hosted locally
  • Backups, tested from day one

Build it with infrastructure as code (for example Terraform and Ansible) so it's repeatable and documented.

Step 4: Keep the data in sync

The database is where downtime is won or lost. A one-off copy means stopping writes for as long as the copy takes, and for a large payment database that could be hours.

The usual answer is continuous replication:

  1. Take an initial copy of the database to the new environment.
  2. Replicate ongoing changes from old to new, using the database's native replication or a change-data-capture tool.
  3. Monitor replication lag until the new copy is consistently seconds behind.

When you cut over, you only need to pause writes for the time it takes the last changes to arrive, often minutes rather than hours.

Step 5: Rehearse the cut-over

Run the full cut-over at least once in a test environment that mirrors production, and time it. A good runbook lists:

  • Every step, in order, with an owner
  • How to check each step succeeded
  • Go/no-go points where you decide whether to continue
  • The rollback plan: how to switch back, and how long it takes

If the rehearsal reveals surprises, fix them and rehearse again.

Step 6: Cut over, carefully

On the day:

  1. Announce a maintenance window, even if you expect not to need all of it.
  2. Pause writes or drain traffic.
  3. Confirm replication has caught up and reconcile key figures, such as record counts and balance totals.
  4. Switch traffic to the new environment, often by DNS or load balancer changes.
  5. Run smoke tests on real transaction paths.
  6. Watch error rates, latency and reconciliation closely for the first hours and days.

Choose a quiet period. For many payment businesses that's early on a Sunday morning, but check your own transaction patterns.

Step 7: Keep a way back, then decommission

Don't switch off the old environment immediately. Keep it ready, and if possible keep reverse replication running, until you're confident. Once you are, decommission it properly, including its backups. An old backup bucket left abroad defeats the purpose of the migration.

What goes wrong most often?

  • Hidden dependencies, such as a batch job or report that still reads from the old database
  • Hard-coded addresses in application configuration
  • Latency surprises where a service that used to sit next to another is now further away
  • Untested rollback, discovered at 3 a.m. on cut-over night
  • Forgotten copies, such as old backups, logs and replicas left abroad

This article is general guidance, not legal advice. Confirm which systems must move with your counsel and Data Protection Officer.

Frequently asked questions

Can payment systems be migrated with zero downtime?

Often with near-zero downtime. Continuous database replication means you only need to pause writes for the last changes to arrive, which can be minutes. True zero downtime is possible for some architectures but takes more engineering.

Should we lift and shift or re-architect?

Against a fixed deadline, most organisations rehost or replatform critical systems first, because it's faster and less risky, and then improve them after the move. Re-architecting makes sense when a system has deeper problems and time allows.

How long does a payment system migration take?

It depends on the number of systems, data volumes and dependencies. Small migrations can take weeks; complex transaction platforms with many integrations take months, and usually start with paid discovery.

What's the biggest risk in a migration?

Dependencies nobody listed. That's why a complete inventory and dependency map come first, and why every cut-over should be rehearsed with a tested rollback plan.

How do we know if we're ready to migrate?

Take Techera's free Data Residency Readiness Check. It includes migration readiness questions and shows your top gaps in about five minutes.

Found this useful? Share it

Was this article helpful?

Your answer helps us decide what to write next.

How ready is your data?

Free Techera Readiness Check · 16 questions · Instant score and your top gaps

Check your readiness

Keep reading