32

I'm looking for an approach or a library that handles this. the idea is to store data in localstorage and sync to the backend when a connection is available, http://pouchdb.com/ looks like a cool solution but anyone has use it on production?

UPDATE:

Right now you can also use:

ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
Orlando
  • 9,374
  • 3
  • 56
  • 53

3 Answers3

10

Haven't used it yet, but familiar w/ the concepts behind BreezeJS from their other offerings in .NET. Check it out http://www.breezejs.com/ and here's Ward Bell presenting it to the Googlers http://www.youtube.com/watch?v=P2ErSQj3SN8&feature=player_profilepage

Mark Nadig
  • 4,901
  • 4
  • 37
  • 46
2

you can also take a look at jaydata http://jaydata.org/blog/synchronized-online-offline-data-applications-part-2-syncing-large-tables-and-tables-with-foreign-relations

Gabor Dolla
  • 2,680
  • 4
  • 14
  • 13
  • Free for open-source apps, premium for closed-source – Per Quested Aronsson Jul 24 '13 at 21:52
  • That is not correct. Most of the library if absolutely free and open sourced with MIT license. Some advanced features are payware if used for commercial purposes but still free for non-commercial use even if the software using the lib is not open sourced. Local to remote sync can be developed without the advanced features so a commercial solution can be developed without payment. – Gabor Dolla Jul 25 '13 at 09:36
-1

breezejs is not a sync solution! if server data changes what happen in local data if some recordes deleted on server after last update local data must sync after a method called sync in other word some date must come back to client after calling savechange that tell client db to be sync with server

Amin Rahimi
  • 235
  • 3
  • 7
  • 4
    While this might be useful information, it should not be answer rather a comment. – Stefano Aug 01 '14 at 14:34
  • Synch/ Distributed solutions rarely allow delete records from the server. You use an inactive/ isdeleted field. Without that you are forced into non scalable full table merges. – user1496062 May 21 '16 at 01:52