I am getting a bit confused wit the number of available APIs and I am not sure how approach this topic.
I will be using Couch DB Lite on android device to sync some state of application form Coach DB . The sync will be read only on Android side - the client will not be allowed to push any data to DB.
Using data provided by CouchDB lite Android Client will be doing REST requests to server written in .NET Core.
The server will be doing its logic and if reqired it will be changing data in Couch DB.
My question here . The change done by server on Couch DB needs to be immediately synced to Android Device (Coutch DB Lite). Which API to use to enforce the instanc sync of Couch DB with Android Device ? SHould this be SyncGateaway’s REST API or something else ? Would posting/updating documment directly to CouchDB( without using Sync Gateaway) will trigger the update on Android side ?
I would prefer not include CouchDB lite to my serer not to duplicate DB.
Important thing is that couch db in my use case is not the main data source it is treated rather like sync tool
I would be grateful for the answer ?