2

Is the communication bi-directional in NServiceBus?

a subscriber can also publish/send message?

Benny
  • 8,547
  • 9
  • 60
  • 93

1 Answers1

2

NServiceBus does indeed support bi-directional communication, a subscriber can publish messages as well. Configure it as a publisher as per-usual, write handlers for events coming from other publishers, configure the messages in the UnicastBusConfig, and you're done.

Udi Dahan
  • 11,932
  • 1
  • 27
  • 35
  • if subscriber publish messages, only the subscriber's publisher will get the message? – Benny Mar 13 '10 at 19:03
  • Is NServiceBus suitable for this scenario: http://stackoverflow.com/questions/2437456/communication-framework-recommendation? – Benny Mar 13 '10 at 19:04
  • The fact that a given subscriber S1 also publishes messages has no effects on the original publisher P1. If subscriber S2 is subscribed to the messages that S1 publishes, it doesn't care that S1 is subscribed to P1. – Udi Dahan Mar 14 '10 at 08:18
  • @Udi Dahan : Can you elaborate your answer, i'm trying to use NServiceBus with 4 Windows Service whose have to act both as Publisher and Subscribers to communicate between all these 4 applications. – Yoann. B May 19 '10 at 15:15
  • Yoann, the comments here aren't a great place for elaboration. I suggest you post your question to the discussion group: http://tech.groups.yahoo.com/group/nservicebus/ – Udi Dahan May 20 '10 at 06:29