Click here to Skip to main content
15,886,963 members
Home / Discussions / C#
   

C#

 
GeneralRe: get rows returned from data adapter Pin
Alexander Kojevnikov4-Aug-03 22:15
Alexander Kojevnikov4-Aug-03 22:15 
GeneralRe: get rows returned from data adapter Pin
mikemilano5-Aug-03 3:47
mikemilano5-Aug-03 3:47 
GeneralSmall C#, VS2003, CheckedListBox, Intellisense question Pin
Robert L. Edwards4-Aug-03 11:05
Robert L. Edwards4-Aug-03 11:05 
Generalregex functions Pin
mikemilano4-Aug-03 9:40
mikemilano4-Aug-03 9:40 
GeneralRe: regex functions Pin
Eric Gunnerson (msft)4-Aug-03 9:54
Eric Gunnerson (msft)4-Aug-03 9:54 
GeneralRe: regex functions Pin
mikemilano4-Aug-03 10:27
mikemilano4-Aug-03 10:27 
GeneralBest Practice for client/server app Pin
morefire4-Aug-03 9:16
morefire4-Aug-03 9:16 
GeneralRe: Best Practice for client/server app Pin
Heath Stewart4-Aug-03 9:34
protectorHeath Stewart4-Aug-03 9:34 
The best way is to allow for both synchronous and asynchronous calls. One thing that CP articles typically miss is reusability and portability. It's always better to make your application scalable and extensible so that clients can use it however they want (those posing restrictions isn't always a bad thing) and you could even mix sync and async calls. Sometimes one is better than the other - it just depends upon the circumstance. That's the server.

The client is a slightly different matter. The server should be an extensible architecture that scales. The client must choose how to use the server. In the case of Web Services, async methods are generated automatically (if you want). If there is a process in which you want the user to wait and it can't / shouldn't be cancelled - use a sync call. If they can cancel it or you want to update the UI or something while waiting, use an async call.

Now, if you use remoting, you have some further options. Providing scalability is important, but your hardware is limited no matter how big you are. You could always support a certain number of async calls, but after so long the hardware gets sluggish. You could inform your client apps (using channels for example) to start using sync calls to cut-down on the server load.

Basically, everything you're reading is right and wrong. There is no "right" or "wrong" way for every circumstance, but there are "right" and "wrong" times to use different techniques.

I know this answer is a little abstract, but I hope is solves your dilema.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Best Practice for client/server app Pin
morefire4-Aug-03 13:24
morefire4-Aug-03 13:24 
GeneralRe: Best Practice for client/server app Pin
Eric Gunnerson (msft)4-Aug-03 12:02
Eric Gunnerson (msft)4-Aug-03 12:02 
GeneralRe: Best Practice for client/server app Pin
morefire4-Aug-03 13:32
morefire4-Aug-03 13:32 
GeneralRe: Best Practice for client/server app Pin
Ista4-Aug-03 18:06
Ista4-Aug-03 18:06 
GeneralMessage Closed Pin
5-Aug-03 7:21
mittencode5-Aug-03 7:21 
GeneralRe: Best Practice for client/server app Pin
Ista5-Aug-03 9:45
Ista5-Aug-03 9:45 
GeneralMessage Closed Pin
5-Aug-03 10:20
mittencode5-Aug-03 10:20 
GeneralRe: Best Practice for client/server app Pin
Ista8-Aug-03 19:27
Ista8-Aug-03 19:27 
Generalpassing objects via WebServices Pin
Raphael Amorim4-Aug-03 8:04
professionalRaphael Amorim4-Aug-03 8:04 
GeneralRe: passing objects via WebServices Pin
Heath Stewart4-Aug-03 9:27
protectorHeath Stewart4-Aug-03 9:27 
GeneralRe: passing objects via WebServices Pin
Raphael Amorim4-Aug-03 10:02
professionalRaphael Amorim4-Aug-03 10:02 
GeneralRe: passing objects via WebServices Pin
Heath Stewart4-Aug-03 10:19
protectorHeath Stewart4-Aug-03 10:19 
GeneralRe: passing objects via WebServices Pin
Raphael Amorim4-Aug-03 10:34
professionalRaphael Amorim4-Aug-03 10:34 
GeneralRe: passing objects via WebServices Pin
Heath Stewart4-Aug-03 10:39
protectorHeath Stewart4-Aug-03 10:39 
GeneralMIME filter Pin
Bog4-Aug-03 7:58
Bog4-Aug-03 7:58 
GeneralRe: MIME filter Pin
Arun Bhalla4-Aug-03 12:40
Arun Bhalla4-Aug-03 12:40 
GeneralRe: MIME filter Pin
Heath Stewart5-Aug-03 17:08
protectorHeath Stewart5-Aug-03 17:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.