开发者

NServiceBus Publish() vs. Send() in website context

I'm looking to gain a better understanding of why it is recommended to never Publish() messages from a website using NServiceBus (NServiceBus Documentation, scroll about two thirds of the way down).

Doesn't it make semantic sense to Publish() events, and to Send() commands? If so, I thi开发者_如何转开发nk it makes sense that a web application can both Publish() and Send() :-)

Also, given that using Publish() doesn't require the web application to know about the recipients of the messages (Send() requires the web application to have all recipient endpoints configured), it feels like Publish() is a better option for many scenarios so that you can 'arbitrarily' subscribe applications to message queues.

Does anyone have strong feelings about this, one way or another? I'd love to hear your thoughts and opinions.


Disclaimer: I wrote this blog post.

Why not publish NServiceBus messages from a web application?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜