Can Ember-Data scale well for non CRUD setup of a complicated webapps?
-
I am using EmberJS and now planning to get the ember-data integrated in for models. We are using Rails/MongoDB as backend. I went through examples and updated documentation at the Ember website but there is one thing common across all discussions/examples that we must have the data flowing in CRUD and effectively rails exposes everything as resource in the router.rb In my practical experience the REST APIs for a touch complex backend may not remain CRUD for every model in the data base. There will be lots of REST APIs which deliver JSON on various query strings. How exactly a Data Store can be applied to such cases. Is there any live example/reference to this. In a broad sense extracting from Tom Dale's talk on Ember Data will help in supporting offline data store, but how this whole concept scales for the sites which bank on database queries which are more complex then find_by_id (Rails equivalent) of Ember DS find. Any references of sample sources/projections of DataStore for complex services might be help.
-
Answer:
Yes we are now able to use EmberJS in a non CRUD setup. We had to write an adapter and the URLs are read for every object. So we define the find/update/create urls and define objects for all the JSONs we process from server. Its highly adaptable. The next thing we had to write was a custom serializer for objects with deep rooted JSONs.
Sudhanshu Saxena at Quora Visit the source
Related Q & A:
- Who can play piano really well?Best solution by Yahoo! Answers
- How can advertising increase economic well being?Best solution by chacha.com
- Is this a good setup for a decent gaming computer?Best solution by Yahoo! Answers
- What is the difference between a non-profit organization and a non-governmental organization?Best solution by maxwell.syr.edu
- How can i write poems well?
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.