r/SQLServer • u/agiamba • Jun 30 '26
Question Selective DB syncs across regions
Hi there, we have a US based client that is wanted to onboard a large office in Asia. Initially, they were intending on them using the same apps, DB, etc that are in US East, but they have concerns on latency. We did some testing and the latency isn't too bad, 200ms or so, but I guess enough that they don't want to proceed that way.
We have done replication across regions in the past and frankly, it went very poorly. I just don't think our team has the expertise in that kind of area, so I am heavily discouraging it.
My not-thoroughly-thought-out suggestion is that each region has their own database and apps, we start the Asia one as a clone from .bak from the US one. We would then do a nightly sync (they do not need real-time) pushing from Australia to US. It would not be a significant amount of data, mostly CRM-type stuff.
They do not anticipate pushing data from DC to Australia, but as always, that's certainly a possibility at some point.
My preference would be a read-only secondary in Australia, with writes going to the US database, but our application does not currently support that.
Thoughts? Is this is a decent idea, a horrible idea, or is there a much better idea?
•
u/AutoModerator Jun 30 '26
After your question has been solved /u/agiamba, please reply to the helpful user's comment with the phrase "Solution verified".
This will not only award a point to the contributor for their assistance but also update the post's flair to "Solved".
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/Automatic_Mulberry Jun 30 '26
Sounds like you don't need sync at the database level at all, but some kind of ETL process.
The system at each end decides, by whatever criteria you set, that some records need to be sent to the other system. These are exported into a flat file, optionally changed, sent to the other end, and the data ingested there. This process runs at a fairly infrequent interval - daily at the most, maybe even weekly or monthly, depending on your business needs.
2
u/TrollingForFunsies Jun 30 '26
So you're offloading reports? AG with an async node for reads might be an option
2
u/Lost_Term_8080 Jun 30 '26
200 ms would be unusably high latency, especially for writes. Reporting has a different expectation, some slowness could be tolerated and application reads could mostly be cached.
If you can ETL it, maybe using CDC, that would be better
1
u/jdanton14 Microsoft MVP Jun 30 '26
Why not replicate to Azure SQL database for your read-only targets? You can quickly push to Asia and Australia and it’s a pretty easy solution to design for.
1
u/Complete-Fondant-202 Jul 02 '26
Potentially, you could use Nitrospheres software because that compresses the packets? I've trialled their stuff in a similar scenario, and the bandwidth requirement dropped 70% and obviously perceived speed improved noticably.
Maybe trial it? Each client would need licensing as I vaguely recollect.