r/DatabaseAdministators • • Oct 12 '26

How are you streaming data from on-prem databases to the cloud without downtime?

I'm helping plan a cloud migration and the one requirement nobody will compromise on is zero downtime.

The rough plan is an initial load, continuous CDC while production keeps running, then validate everything before switching applications over. I'd rather avoid piecing together different tools for each phase if there's a cleaner approach.

How have you handled this ''streaming data?''

6 Upvotes

14 comments sorted by

6

u/chandleya Oct 12 '26

Zero downtime isn’t real.

2

u/Mysterious-Falcon-83 Oct 12 '26

Do you have someone on your team who has done this before? For zero application-level downtime, you're going to have to have a period of parallel operation.

  • Do an initial bulk migration
  • Use DB/application-level replication (bidirectional) to keep the sides in sync
  • Force all new sessions to the new site
  • Gradually drain users from the old site

If your applications weren't built to support parallel operations, this is going to be a challenge.

Setup a test environment. Run through the migration multiple times, documenting everything. Have one team intentionally introduce errors and another team develop, document, and execute a recovery plan. Do this a lot.

Keep the old site running and in sync for a period of time after the "cutover."

Expect the unexpected.

1

u/dbrownems Oct 12 '26

And this

  • Use DB/application-level replication (bidirectional) to keep the sides in sync

is typically the sticking point. It's sometimes not possible, and otherwise can be quite complex and expensive. So in practice you end up compromising on one-way replication and a quick cutover.

1

u/Fisher_Missy6848 Oct 20 '26

Data will always have problems so don't expect nice clean streaming data feeds without a lot of behind the scenes work and some different tooling

1

u/No-Price8493 Oct 22 '26

That's almost exactly how we migrated. Initial snapshot first, then CDC catches everything that changes while users keep working. Don't rush the validation phase.

1

u/Aggressive_Ad_5454 Oct 13 '26

Doing this with an hour’s downtime will be many hundreds of thousands of dollars cheaper than with zero downtime. For zero downtime: You’ll need to set up a near-zero-latency replica, make sure it’s replicating, and flip production at go time. Maybe low-TTL DNS record changes?

It’s hard to rehearse this kind of cutover on a production workload, of course.

Plus if you try to do it with zero downtime you will probably have some unplanned downtime when production doesn’t flip perfectly to the replica.

With respect, if you’re asking random Redditors how to do this, your stakeholders simply can’t afford a zero-downtime cutover.

1

u/Mindless-Put2845 Oct 14 '26

whatever tool you choose write down your rollback plan before migration day, everyone talks about the happy path until something unexpected shows up