开发者

NServiceBus pub/sub and hardcoded publisher location

Is the a way to make a subscriber subcribe on a message type without knowing the publishers (location)? I guess this could be done with a central subscription 开发者_StackOverflow社区storage.


NServiceBus tries to gently guide you towards good SOA practices. One of these is that there can only be one logical publisher for each published message type. (Although, that logical publisher may have multiple physical worker processes.)

Because of this, I'm not sure why you would want to subscribe to an event and not know where it is published from.

If you could explain a bit more about your particular use case, it might be helpful in determining what your true motivations are.


Try having a look at the Distributor from NServiceBus.

http://www.nservicebus.com/Distributor.aspx

Normally the Distributor would be used for LoadBalancing. You subscribe regularly in your Distributor to the messages from your publisher but your Subscribers must only have to know the address of your Distributor.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜