Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 Distributed Database Architecture

Author  Topic 

chih
Posting Yak Master

154 Posts

Posted - 2013-05-08 : 03:25:11
Hi all,

My company is planning to launch a website/mobile app in different countries. As data need to be sync between different countries, what is the best architecture to setup database?

i am wondering how facebook does. Anyone can give me a light? or article i can read

Thanks in advance

ahmeds08
Aged Yak Warrior

737 Posts

Posted - 2013-05-08 : 04:57:27
Replication would be one option.

mohammad.javeed.ahmed@gmail.com
Go to Top of Page

chih
Posting Yak Master

154 Posts

Posted - 2013-05-16 : 20:26:03
mmm...

If one site is in Aus and one is in US, will it have delay using replication?
Do I need to setup link between 2 sites?



quote:
Originally posted by ahmeds08

Replication would be one option.

mohammad.javeed.ahmed@gmail.com

Go to Top of Page

Ifor
Aged Yak Warrior

700 Posts

Posted - 2013-05-17 : 06:11:03
Another option would be to use the Service Broker.

eg

http://diegworld.blogspot.co.uk/2010/03/asynchronous-triggers-using-sql-broker.html

http://stackoverflow.com/questions/7271922/sql-server-trigger-an-asynchronous-update-from-trigger
Go to Top of Page

Transact Charlie
Master Smack Fu Yak Hacker

3451 Posts

Posted - 2013-05-17 : 06:45:32
This isn't something that sql server is traditionally good at. At least in comparison to some different datastores I've used. There are products such as CouchDB that have merge / merge synchronization as key principals.

what kind of data needs synchronizing?
How much delay is acceptable for cross country / continent replication?
If you are storing session state or other key/value type information and need to synch that, then you may want to consider looking into a distributed key value store instead.

Have a look at RIAK Enterprise.
http://basho.com/riak-enterprise/

I love riak's scaling model and how it performs under failure conditions.



Transact Charlie
Msg 3903.. The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION.
http://nosqlsolution.blogspot.co.uk/
Go to Top of Page
   

- Advertisement -