Our application server needs to change data particular to a single user (say its score).
That user is running a Couchbase Lite on his device, which syncs against a Sync-Gateway that the application-server now needs to access directly.
Doing it with “Bucket Shadowing” sounds expensive in terms of disk space and overall complexity.
Also, and regardless, when the user changes something on his device local database, I need the server to be triggered with an event (just like the device SDKs allow). Is that even possible?
It seems that Couchbase Mobile is a platform to keep devices in sync (with the cloud and among themselves) without allowing a back-end server to join this sync party. Injecting data from a server to a client (or a set of clients) seems like a very typical use-case. It would be extremely helpful if there was a Couchbase Lite SDK for the server side as well, with all the facilities included in the device SDKs (without, of course, maintaining a “local” copy of the database). Without this ability, the app-server can’t take part of the updates that the various clients make.