Currently our application is 100% offline first, where the application installed in the user’s machine talks to CB Server via CB Lite and Sync Gateway.
App (local) > CB Lite (local) > CB Sync Gateway (cloud) > CB Server (cloud)
It works fine. Now we’re planning to deploy our application to the cloud also so that the group of users who’re always online can connect to the cloud via a web browser. We’re planning to connect the application deployed in the cloud directly to CB Server.
App (cloud) > CB Server (cloud)
Is this a good approach? Or should we connect the application deployed in the cloud to the CB Sync Gateway - REST apis?
App (cloud) > CB Sync Gateway (cloud) > CB Server (cloud)
Our main concern is that if we interact directly with CB Server, will those changes be captured by Sync Gateway to be synced down to CB Lite running in offline user’s machines… Please advise…