views:

326

answers:

4

Hi, I try to write a pub/sub system ( client and server side ) , where client receives regular updates ( like heartbeat, message control ) and can issue command to server ( subscribe to some source , .... ).

What would be a good way to do that? I have already a server implementing a threadpool to manage incoming client connection.

I was wondering how to handle the fact the both side of the connection can read or write data in the NetworkStream . Furthermore more of my clients will actually issue very few commands to the server ( mostly to subscribe to some data and then just get regular updates ). I try try to use plain socket,tcpclient,tcplistner ( i ll see later about WCF )

Thx Dave

A: 

Sounds like you should use messaging- something like Tibco. Here's a link- link text

RichardOD
+1  A: 

Or something free, like pubsub using MSMQ and WCF.

http://dotnetslackers.com/CSharp/re-108306_Building_a_Pub_Sub_Message_Bus_with_WCF_and_MSMQ.aspx

Rob Ellis
A: 

Take a look at NServiceBus, it may fit your needs.

Ron Klein