Hi, we have a case that we want to monitor whether there are still pending document sync for each collection between our Couchbase Sync Gateway and each client’s Couchbase Lite. Currently we are using Couchbase Enterprise license on our on-premise environment. We want to know whether this is possible or not by using any built-in APIs in CB Server, CB SG, and / or CBL.
Our current Couchbase systems:
- Couchbase Server Enterprise 7.6.4
- Couchbase Sync Gateway Enterprise 3.1.7
Let’s say we have these 2 collections along with their latest total docs stored in each collection:
products
: 100 docsorders
: 50 docs
We have 3 users that using our mobile app that have Couchbase Lite integrated in the said app, and each of them having their own channel. These are their names along with their own channel name:
- Client A:
001
- Client B:
002
- Client C:
003
Now, when the sync process between CB SG and each client is connected well, all docs for both collections are supposedly synchronized well into each CBL. However, there might be some case that some clients have not fully obtained the whole docs.
This is the visualization of the case, where somehow Client A have sync discrepancies around 90 docs where it should be 100 docs: