Reputation: 1695
It is possible to sync data saved by server application into mobile apps? Now i have got sync between couchbaselite -> sync_gateway -> couchbase_server
and now i wanna sync in that way:
java application -> couchbase_server -> sync_gateway -> couchbaselite
is that possible to do ?
Upvotes: 2
Views: 218
Reputation: 333
It is technically possible to do this with bucket shadowing as mentioned by @combinatorial. However, it is no longer recommended, and is in fact highly discouraged by Couchbase. There are a number of serious bugs that you can encounter if you do not have full awareness of how it works and there are severe limitations associated with its use.
Bucket shadowing has not been worked on for a significant amount of time and has never been officially supported and could be removed in the future.
The current recommendation for dealing with such issues is to modify the documents only via sync gateway. You can either do this via the simple to use REST API, or via a Couchbase Lite client. There is additionally the option to use a CouchDB client with Sync Gateway (They use near-enough the same API) which will allow for slightly more direct interaction.
Upvotes: 4