Live data from Hacker News

Angular-data: data store and caching for Angular.js

angular-data.pseudobry.com

1–10 of 49 posts

Re: Angular-data: data store and caching for Angular.js

#8
This is great. I've written more application-specific angular data stores than I'd care to admit at this point. From what I understand, this is something that Angular 2.0 will handle better, which was enough for me to justify being too lazy to write a generic library. Thanks for doing the grunt work!

Re: Angular-data: data store and caching for Angular.js

#9
From building http://platform.qbix.com/features/streams I know that there are a lot of challenges here. Caching, throttling and batching requests is of course really useful. My biggest question is how do you implement:

  * multi-user access
  * realtime updates to connected clients, and 
  * offline editing and sync?
When multiple users access a resource, you have to consider things like consistency issues (making sure all users see the same changes applied in the same order). Also other stuff would be nice like access control (perhaps integrated with the publishing user's address book) as well as subscriptions notifications when something changes.

Does anyone know of a library that implements that? It took me a couple years to get everything right in my own library.

Re: Angular-data: data store and caching for Angular.js

#10
Why does this has to be an angular library ? there's no need for that.

You could provide a generic js library with a way to opt-in angularjs,that way,your data access layer isnt tied to a presentation framework.

Can I use this lib with Backbone or React ? why this fixation on making everything depend on angular ? like jQuery in the past ? are we destined to repeat the same mistakes over and over again in the client js world ?

Post reply on HN