I’m reading the documentation about sync gateway and couchbase server and I’ve this doubt: Is it better to use Sync Gateway API REST or using Couchbase server SDK to save the documents to the DB and guarantee a fast synchronisation to the mobile devices?
Is there any “operative” difference between these two methods of saving documents?
I’ll make an example:
I’ve a document coming from my web server and I want it to be synchronised through all my mobile devices. I’ve got SG and CBL to synchronise my devices and then Couchbase server to store all the data.
Is it better to make an API CALL directly to SG and create the document or save the document to Couchbase server through an SDK and then wait until SG will synchronise the document to the mobile devices?
I cannot really understand the difference between these two methods of saving the documents, can someone help me?