Reputation: 2378
I have a dashboard application in which I am calling some services from java script to display the data on the screens. In order to get updated data I am pooling after interval and refreshing the whole screen. Following are my concerns regarding this app
Instead for redrawing the whole thing, we can check the value which are updated and only update those values, but it would involve too many calculations.
If somehow call to the service fails, all the values figures become zero, how can I make the application persist the old figures if the call to service fails.
Any suggestions of the technology side, I am willing to use signlr, angularjs if it can the application better in terms of the issues I listed above
Upvotes: 0
Views: 248
Reputation: 9456
If you are using not really familiar with signlr, but angular you could easily create a promise that updates a model from the service... Then if the update fails, the old model will still be present, and won't have to repaint.
It also handles the incremental redraw issue.
Upvotes: 1