Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

First Time Architecturing?

I was recently given the task of rebuilding an existing RIA. The new RIA that I've designed is based on Silverlight, with a WCF service to connect to MS SQL Server. This is my first time doing something like this, so I'm not sure how to design the entire thing.

Basically, the client can look through graphs of "stocks" (allowing the client to choose different time periods, settings, etc). I've written the whole application essentially, but I'm not sure how to put it together.

The graphs are supposed to be directly based on the database, and to create the datapoints on the graph, some calculations need to be done (not very expensive ones).

The problem I'm having is to decide where to put the calculations (client or serverside? Or half and half?)

What factors should I look for to help me decide where the calculations should be done? And how can I go about optimizing this (caching, etc)?

Obviously this is a very broad subject, so I'm not expecting an immediate answer, but any help/pointing in the right direction/resources would be appreciated.

like image 429
cam Avatar asked Dec 12 '25 07:12

cam


1 Answers

A few tips for this kind of app.
Put as much logic as possible on the client.
Make the client responsible for session data, making all your server code stateless.
Try to minimize traffic to and from the server (Bigger requests are more efficient than multiple smaller ones) so consolidate requests when possible.

like image 171
Romain Hippeau Avatar answered Dec 15 '25 15:12

Romain Hippeau