SQL Geo-replicated High Availability

Status
Not open for further replies.
I need 2 SQL servers at different locations with the same data available read/write (on-prem/data centre, active/active). I don't believe this exists. If I understand correctly, even Always On availability groups where both nodes use synchronous commit, the secondary node/db is read-only. I'm digging for some more info and hoping the hive mind will offer insight or maybe experience with a 3rd party product. :/
 

metadaemon

Wise, Aged Ars Veteran
121
Horizontally scaling writes has always been resolved by application design, in my experience (sharding for example). Just curious, why the need to write to separate servers simultaneously? For a synchronous whole-database, you can't really scale writes horizontally anyways. You could look into some kind of replication scheme as well, but this would need application support as well.

You can look into Distributed Availability Groups to handle the difference in location.
 
It's been a moving target what this client wants. I'm sure it's common to have clients that want their cake and eat it too, but also don't want to pay for it. I just want to make sure I'm not missing something that should be obvious. I'll go back to the dev team and question them about shards and what can be done with the application. At the very least they should be able to explain why it wasn't proposed before.
 

Coleman

Ars Legatus Legionis
16,790
Subscriptor
Yeah I think the laws of physics really is a problem for this scenario. metadaemon's correct afaik, you'd probably have to solve it in code. The closest you can come in database is probably something like using replication in merge replication mode (so that subscribers can also update data) but it wouldn't be synchronous, you'd still have some lag based on how often replication happens.
 
Status
Not open for further replies.