ZedBee
ZedBee

Reputation: 2378

Dashboard Application Architecture

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

  1. It is kind of irritating to call the service and before displaying the figures show the loading image.

enter image description here

  1. 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.

  2. 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.

  3. 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

Answers (1)

Rob Conklin
Rob Conklin

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

Related Questions