persistence - How can I implement persistent/fault-tolerant replication using PouchDB? -


PouchDB of repeat () functions fault are not tolerant and if you open your Internet Replication Will have to face connection or some network barriers, whenever you have an internet connection, you need your app to replicate the data.

Of course, you can apply your own retry algorithm, but this requires a basic number of work. Is there a plugin that we can use?

I've just been released, continued a plugin for replication with this plugin, you just

  var db = new PouchDB ('todos'); // instead db.replicate () var persist = db.persist ({url: 'http: // localhost: 5984 / todos'});   

You can also listen for connect and disconnected events.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -