Keeping distributed databases synchronized in a unstable network

后端 未结 4 600
日久生厌
日久生厌 2021-01-30 23:43

I\'m facing the following challenge:

I have a bunch of databases in different geographical locations where the network may fail a lot (I\'m using cellular network). I ne

4条回答
  •  不知归路
    2021-01-31 00:09

    I am not aware of any databases that will give you this functionality out of the box; there is a lot of complexity here due to the need for eventual consistency and conflict resolution (eg, what happens if the network gets split into 2 halves, and you update something to the value 123 while I update it on the other half to 321, and then the networks reconnect?)

    You may have to roll your own.

    For some ideas on how to do this, check out the design of Yahoo's PNUTS system: http://research.yahoo.com/node/2304 and Amazon's Dynamo: http://www.allthingsdistributed.com/2007/10/amazons_dynamo.html

提交回复
热议问题