Reputation: 81
I am pretty new to elasticsearch and couchbase and I want to understand a few concepts in order to make decisions on how to use them in my applcation.
My overall question: is it possible to configure bidirectional xdcr between couchbase and elasticsearch using the transport-couchbase plugin?
Since it is possible to update documents that are in an elasticsearch index, I want to be able to propagate that update back to the couchbase server. Is there any way to do this? Ive searched online for anything that can do this, with no luck so far...
Upvotes: 2
Views: 249
Reputation: 2481
I maintain the Couchbase transport plugin and as Laurent answered earlier, it doesn't allow replicating from Elastic back to Couchbase. While it's technically possible to implement this functionality, it wouldn't make sense to do so in practice. The whole point of replicating to Elastic is to use it as an index on top of your source of truth, which is Couchbase. That way you get the high performance reads and writes of Couchbase and the query and search functionality of Elastic. Replicating changes back to Couchbase would mean the data there is no longer authoritative, which in turn opens the door to all sorts of concurrency and data integrity problems.
Upvotes: 1
Reputation: 528
as far as I know it's currently not possible to sync changes from Elasticsearch to Couchbase. From a semantic perspective, you probably don't want to change an index, and forward a change from the index to the DB backing that index.
Upvotes: 3