单机nServiceBus部署方式
我希望将 nServiceBus 放到一台机器上,并且想知道我对简单部署的理解是否正确。
我打算在自己的服务中部署每个逻辑发布者和订阅者(根据建议 这里),并且每个都有自己的消息队列(我将使用 MSMQ)。部署另一个订阅者就像添加服务和队列一样简单。要删除它,您只需删除服务和队列即可。
真的像低消息量单机部署那么简单吗?
这种方法有什么我需要注意的严重问题吗?
I'm looking to put nServiceBus onto a single machine and am wondering if my understanding of a simple deployment is correct.
I intend to deploy each logical publisher and subscriber in their own service (as per advice here), and for each to have their own message queue (I will be using MSMQ). To deploy another subscriber is then as simple as adding the service and the queue. To remove it you just remove the service and the queue.
Is it really as simple as that for a low message volume single machine deployment?
Are there any serious gotchas I need be aware of with this approach?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确实应该如此。您可能需要考虑的另一件事是至少将错误队列放在另一台计算机上,以防单台计算机崩溃。这样您仍然可以了解错误在哪里。我认为在生产环境中您可能需要考虑集群以使其更加可靠。
That really should be it. The other thing you may want to consider is at least putting your error queue(s) on another machine in case that single machine crashes. This way you can still get an idea as to what the errors where. I think in a production environment you may want to consider a cluster to make it a little bit more reliable.