Home All Groups Group Topic Archive Search About

Building an application with needed assistance regarding messaging

Author
24 Feb 2006 6:16 PM
Lonko
guys i need an opinion about this: i'm building an application that
makes data exchange to clients, over TCP/TLS, on the host side for each
client a thred is running(it has to be, because the data for each
client is very diffrent and complex), so the main point is that thic
clients could interact with each other in special conditions thru the
host system, so basicly is what i was thinking about is that each
client thread which is established should be registered in a
collection, to which all other client threads have access, and in this
collection is for each client thread a QUEUE of messages that has been
received, so A thread sends a message to B thread, then this message
gets enqueued in B-collection mailbox, and one thing simple and secure
and reliable enough i was thinking about is MSMQ 3.0, so when thread A
gets connected it registeres a private MQ, and when thread B sends a
message it checks first if that A client's queue is registered, and if
it is it sends a message which A receives thru async callback If in
case that A's queue doesn't exist the message is posted in a combined
queue which is checked by a master thered that reports undelivered
messages

this must be fast, and around 1000 clients will be connected, and
around 5-10messages/sec will be in most times

Any help would be apriciated!

AddThis Social Bookmark Button