Reputation: 487
We have gone down the route of using indexeddb as the store for our objects and then marking items with a flag to be synchronized back to the server once online again. Its been written in a fairly untidy manor at the moment and syncs whole objects back and forth which can cause performance issues and slow down.
I was wondering if anyone has implemented anything that just keeps track of deltas and synchronizes using this, perhaps a message queue or something like a change log that keeps track of individual field changes?
Upvotes: 1
Views: 1027
Reputation: 936
I thought about this a lot and created a project... The documentation for it is detailed and explains why and how... It may help, or at least give you things to think about. It has very recently been updated to support IndexedDB
https://github.com/forbesmyester/SyncIt
There is also RemoteStorage ( they were/are looking at using SyncIt + other bits in the project going forward ), Hood.ie and the commercial FireBase in this field.
Upvotes: 1