Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Looking for advice on passing data between layers
Message
From
05/03/2005 18:43:15
 
 
To
05/03/2005 11:03:00
General information
Forum:
ASP.NET
Category:
Class design
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Miscellaneous
Thread ID:
00992836
Message ID:
00993051
Views:
23
Thanks Bonnie. The data returned to the UI will be small, so the "chunky" option should be a good choice.

The first version of the software will be an old-style Windows application (all the components except the database will reside on the user computer). This decision is mainly due to the fact that this is my first project in .NET and considering all the things I need to learn and the ridiculy small amount of time I have to complete the project, I don't want to overcomplicate the project.

The second version of the software will have both a Windows and a web front end, so I intend to remove the BO components from the user computer to place them on a server. My next question will be wich method of communication is better between the layers: .NET remoting or web service? Or both (.NET remoting for the WinForms and web services for the web)?

In that context, will the "chunky" option still be relevant or I should go with the "chatty" option instead?

TIA

>This all boils down to the "chatty" vs "chunky" methodologies. Chatty would be many calls to the back-end, chunky would be getting as much as possible in one fell swoop. Typically, chunky is better, unless there's huge amounts of data involved. In this particular example, if you're talking about a lot of data, I might lean towards your first option, one call for each table, since each table is dependent on what the user chooses from the Combos. Again, this all this depends on how large your anticipated data will be.
>
>Another question to think about is whether or not to use Web Services to access your server-side data (I recommend it).
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform