w3c / IndexedDB

Indexed Database API
https://w3c.github.io/IndexedDB/
Other
244 stars 62 forks source link

Bidirection Replication #307

Open guettli opened 5 years ago

guettli commented 5 years ago

If you want off-line first web applications, the fundamental part is the data.

If the bidirection replication is available, then it is much easier for developers to write offline-first applications.

Of course this could be solved by JS libraries (like PouchDB) but I think a official spec would be better.

image

Source: https://pouchdb.com/guides/replication.html#couchdb-sync

What do you think about this?

inexorabletash commented 5 years ago

Talking with many developers, difficulty of reconciling conflicts in a one-size-fits-all way led us to investigating an observer mechanism as a primitive to add to enable sync mechanisms to be constructed.