Selective replication with CouchDB

后端 未结 4 1990
情书的邮戳
情书的邮戳 2021-02-07 16:01

I\'m currently evaluating possible solutions to the follwing problem:

A set of data entries must be synchonized between multiple clients, where each client may only view

相关标签:
4条回答
  • 2021-02-07 16:11

    Here is a new link to the some documentation about this:

    http://blog.couchbase.com/what%E2%80%99s-new-apache-couchdb-011-%E2%80%94-part-three-new-features-replication

    0 讨论(0)
  • 2021-02-07 16:13

    this begs for replication filters. you filter outbound replication based on whatever criteria you impose, and give the owner of the target unrestricted access to their own copy.

    i haven't had the opportunity to play with replication filters directly, but the idea would be that each doc would have some information about who has access to it, and the filtering mechanism would then allow outbound replication of only those documents that you have access to. replication from the target back to the master would be unrestricted, allowing for the master to remain a rollup copy, and potentially multicast changes to overlapping sets of data.

    0 讨论(0)
  • 2021-02-07 16:13

    What you are after is replication filters. According to Chris Anderson, it is a 0.11 feature.

    "The current status is that there is an API for filtering the _changes feed. The replicator in 0.10 consumes the changes feed, so the next step is getting the replicator to use the filter API.

    There is work in progress on this, so it should be fully ready to go in 0.11."

    See the orginal post

    0 讨论(0)
  • 2021-02-07 16:31

    Indeed, as others have said, replication filters are the way to go for this. Here is a link with some information on using them.

    One caveat I would add is that at scale replication filters can be extremely slow. More information about this and other nuances about couchdb can be found in this excellent blog post: "what every developer should know about couchdb". For large scale systems performing replication in the application layer has proven faster and more reliable.

    0 讨论(0)
提交回复
热议问题