3

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

Dave
  • 1,835
  • 4
  • 26
  • 44
  • Well, i was most interested in building my own version using plain sockets in order to get a deeper knowledge of the underlying block and architecture choice. – Dave Jun 10 '09 at 16:28

3 Answers3

3

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
  • 1,297
  • 2
  • 16
  • 30
1

Try NServiceBus, MassTransit or Rhino Service Bus

There's actually some good stuff about the three of them on SO (nServiceBus, Rhino Service Bus, MassTransit - Videos, Demos, Learning Resources)

Community
  • 1
  • 1
Michał Drozdowicz
  • 1,232
  • 11
  • 30
0

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

Ron Klein
  • 9,178
  • 9
  • 55
  • 88