Click here to Skip to main content
15,925,723 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
GeneralRe: What about design patterns? Pin
CPallini28-Dec-06 0:12
mveCPallini28-Dec-06 0:12 
GeneralRe: What about design patterns? Pin
Mairaaj Khan28-Dec-06 18:47
professionalMairaaj Khan28-Dec-06 18:47 
GeneralRe: What about design patterns? Pin
CPallini28-Dec-06 21:41
mveCPallini28-Dec-06 21:41 
GeneralRe: What about design patterns? Pin
Divyang Mithaiwala2-Jan-07 23:10
Divyang Mithaiwala2-Jan-07 23:10 
GeneralRe: What about design patterns? Pin
Mairaaj Khan4-Jan-07 20:23
professionalMairaaj Khan4-Jan-07 20:23 
QuestionDesign Guidelines : Polling vs Events Pin
yuvalmarco22-Dec-06 0:47
yuvalmarco22-Dec-06 0:47 
AnswerRe: Design Guidelines : Polling vs Events Pin
Pete O'Hanlon22-Dec-06 1:27
mvePete O'Hanlon22-Dec-06 1:27 
AnswerRe: Design Guidelines : Polling vs Events Pin
James R. Twine27-Dec-06 2:04
James R. Twine27-Dec-06 2:04 
   In my experience, this depends greatly on the thing being interfaced with and the platform.

   For example, some hardware devices support interrupts and can raise an interrupt when something happens, and then data can be read from the device.  Some others do not support interrupts and need to be polled (rapidly) so that any data is not missed.

   It may also depend on your platform.  If targeting an battery-powered platform (or working with a battery operated device), polling can greatly reduce battery life over an interrupt-based approach.

   For what you suggest above, I would have clients register with the server and have the server fire off events as required.  This is less work all around in the long run - network traffic only exists when something is actually happening, and the server is not going to be chewing up CPU cycles by always answering "no" each time a client connects and asks "is anything available?".

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)

AnswerRe: Design Guidelines : Polling vs Events Pin
karam chandrabose7-Jan-07 19:15
karam chandrabose7-Jan-07 19:15 
GeneralFirst post on new forum Pin
PJ Arends20-Dec-06 23:45
professionalPJ Arends20-Dec-06 23:45 
GeneralRe: First post on new forum Pin
Hamid_RT21-Dec-06 1:23
Hamid_RT21-Dec-06 1:23 
GeneralRe: First post on new forum Pin
Sebastian Schneider22-Dec-06 1:39
Sebastian Schneider22-Dec-06 1:39 
GeneralRe: First post on new forum Pin
J. Dunlap27-Dec-06 3:35
J. Dunlap27-Dec-06 3:35 

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.