The sync happens in an unmanaged fashion, without the user or the application programmer having to care about the state of the connection.
Your PouchDB application works locally on your device, whether the connection is up and down, and the data is synched with the remote database whenever there is connection.
The alternatives to this PouchDB to CouchDB synching mechanism would have to be either:
- the user checks whether the connection is up, and manually manages the sync, or
- the application programmer saves the user the trouble by adding code that checks whether the connection is up, and automatically manages the sync
Your PouchDB application works locally on your device, whether the connection is up and down, and the data is synched with the remote database whenever there is connection.
The alternatives to this PouchDB to CouchDB synching mechanism would have to be either:
- the user checks whether the connection is up, and manually manages the sync, or
- the application programmer saves the user the trouble by adding code that checks whether the connection is up, and automatically manages the sync