NServiceBus:负载平衡订阅者
是否可以在不使用分发器的情况下对我的订阅者工作节点进行负载平衡?我的想法是这样的:
如果我只是将每个工作节点放在一个虚拟 IP 后面,然后将此虚拟 IP 订阅到发布?您可以将 MSMQ 消息发送到虚拟 IP 后面的计算机吗?
Is it possible to load balance my subscriber worker nodes without using a distributor? Here's what I am thinking:
Instead of having my distributor subscribe to a publication, and having each worker node "report for duty" to handle messages, what if I just put each worker node behind a Virtual IP, and subsrcibe this Virtual IP to the publication? Can you send MSMQ messages to a machine behind a Virtual IP?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“虚拟IP”的问题是,您希望有一个队列来存放未处理的工作,以便您可以监视它,并在此基础上增加/减少工作节点的数量。您在使用分配器时遇到过什么问题吗?
The problem with a "virtual IP" is that you want to have a queue where unprocessed work sits so that you can monitor it, and based on that, increase/decrease the number of worker nodes. Did you run into any problems when using the distributor?