couchdb 用于/真正/分布式副本
假设我想实现一个分布式数据库(每个节点都是其他节点的副本);我听说 cdb 能够轻松地在两个节点之间同步,并且至少支持某种形式的冲突解决。
不幸的是我不知道 couchdb 因此我不得不问:节点“图”的情况如何?假设我们有一千个断开连接的节点;因此,我认为我们会发生多方面的冲突。
在这种情况下, couchdb 机制可以帮助我吗?
否则,我们应该假设必须建立严格的节点层次结构,而这在我的情况下是不够的。
提前致谢 ;)
let's say i want to implement a distributed database (each node being the replica of the others); i hear that cdb is able to easily sync between two nodes and at least support some form of conflict resolution.
unfortunately i don't know couchdb therefore i have to ask: how's the situation for a "graph" of nodes? let's say we have a thousand disconnected nodes; therefore we'll have - i think - n-way conflicts.
can couchdb mechanisms help me in this case?
otherwise one should assume that a rigid hierarchy of nodes have to be established, and this can't suffice in my case.
thanks in advance ;)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,CouchDB 将在所有节点上保留文档的所有冲突版本。一旦解决了一个节点上的冲突,冲突就会传播到其他节点。冲突解决必须由您的应用程序完成。
阅读 冲突管理章节 books.couchdb.org/relax/" rel="nofollow noreferrer">CouchDB 书籍 了解详细信息。
As far as I know CouchDB will keep all conflicting versions of a document on all nodes. Once you resolve the conflict on one node, it will be propagated to the others. The conflict resolution must be done by your application.
Read the conflict management chapter of the CouchDB book for details.