I'm building a web-activity driven app. When the application starts up, a socket is opened to a server. That socket connection is kept open and any time the server data changes, the changes are pushed down that socket to the client.
The client has a thread which watches that socket connection. Whenever new data comes in, that thread fires an event. I want an event listener on that event to generate a set of controls that the user can manipulate on the form.
The architecture is set this way because everything is very time critical. I expect to have 500 users connected to single machines in a small server farm (~5 machines). An outside party will send their data to a central server. From there it needs to be routed to one of the farm servers which needs to route it to an individual user. The user's machines then needs to send back an acceptance which needs to be routed all the way back up to the outside party. The whole thing needs a round trip of less than 1/4 second. We're hoping for around 1/10 of a second with at least 100 messages/second handled by the farm servers collectively.
Main Topics
Browse All Topics





by: Troy_LynePosted on 2004-04-14 at 15:31:45ID: 10828466
All the Graphical components in a typical windows forms application run on a single message driven thread, therefore all controls must be instantiated via a call from this thread.
Maybe explain a little more what you are trying to do and why your event is not part of the windows messaging thread?