First time?

Recently, I was entrusted with the restructuring of the existing RIA. The new RIA that I developed is based on Silverlight, with a WCF service for connecting to MS SQL Server. This is my first time doing something like this, so I'm not sure how to develop all this.

In principle, the client can view the β€œstock” charts (allowing the client to choose different time periods, settings, etc.). I wrote the whole application essentially, but I'm not sure how to build it.

It is assumed that the graphs should be based on the database, and to create data on the graph, you need to perform some calculations (not very expensive).

The problem I am facing is to decide where to put the calculations (client or server? Or half and half?)

What factors should I look for to help me decide where to make my calculations? And how can I optimize this (caching, etc.)?

Obviously, this is a very broad question, so I do not expect an immediate answer, but any help / guidance in the right direction / resources will be appreciated.

+3
source share
3 answers

A few tips for such an application.
Put as much logic as possible on the client.
Make the client responsible for the session data, making all your server code void.
Try to minimize traffic to and from the server (larger requests are more efficient than several smaller ones), so consolidate requests when possible.

+4

, , , , , , . , , , CPU. , , .

, , ? - , , (.. ), . , , , , , , , , ( ). , , , , , .

, , , , , .

+3

. , , . , , , , , , , 2 !

, . , :

  • , , , , .
  • , ( CPU), , .
  • , , , , " ", , , .., ..

: .

, , :

  • , .
  • , , , . , , . , async, .
  • .
  • per realamnce
  • , .
  • , , . 3.

- , , , , , , , ..

, http://blogs.msdn.com/richardt - .

+2

Source: https://habr.com/ru/post/1746241/


All Articles