ember.js - Is ember-data an adequate solution for managing communication between a single page app and a C++ (QT) backend? -
i'm developing standalone application uses c++ crunch numbers, , single web app front-end, using ember.
i've thought create ember-data adapter handle communication between javascript , c++. communication driven changes in model: when user action triggers change in model, action may required in backend.
example:
a model be: date {day of year, day of month, month}. when user changes of these parameters, updated model passed backend, updates other two. after backend has updated model parameters, trigger refresh on frontend.
the backend operation more complex, basic idea: properties depend on others, calculated backend, on other side of ember-data adapter.
the advantage in future it'd simple reuse frontend, switching adapter, may browser based front end can linked more powerful backend on http server.
however, i'm not sure adequate use of ember-data. i'd using ember-data data persistence, not that, models modified backend.
so, question is, think scheme makes sense, or bad idea? in later case, please indicate better alternative?
thanks, eloy
yes scheme makes sense. not uncommon ember-data used systems both persist , modify data on backend.
if modification happens quickly, backend can trigger frontend refresh in it's response update. otherwise said trigger refresh on frontend. i've seen both of these approaches working ember-data apps.
Comments
Post a Comment