通过 Internet 订阅 MSMQ
我一直无法找到这个问题的明确答案。有没有一种通过互联网订阅 MSMQ 的好方法?理想情况下,我需要此连接的身份验证和加密方面的安全性。但我希望订阅者的行为就像在本地网络上订阅的任何其他客户端一样。我相信我这里有几个选项
- 公开公开 MSMQ 端口
- 将 MSMQ 置于某种类型的 WCF 服务后面(不确定这是否适用于订阅者)
我还有哪些其他选项?我们处于 .NET 环境中,试图解决的主要问题领域是将远程连接从拉动系统更改为基于事件的系统,以减少主服务器上的负载。
I haven't been able to find a clear answer to this problem. Is there a good way to subscribe to a MSMQ through the internet? Ideally I need security both in authentication and encryption for this connection. But I would like the subscriber to act just like any other client that would be subscribed on the local network. I believe I have a couple of options here
- Expose the MSMQ ports publicly
- Put the MSMQ behind some type of WCF service (not sure if that works for a subscriber)
What other options do I have? We're sitting in a .NET environment and the main problem domain that is trying to be solved is to change the remote connections from a pulling system to an event based system to reduce the load on the main server.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
一种方法是使用互联网上的队列。
我在 Microsoft 工作,我的团队拥有 MSMQ,我们还拥有 Windows Azure 服务总线服务。对于您描述的场景,您可能需要考虑使用服务总线队列,它不仅具有 Internet 发送者可访问的优点,而且还无需在接收端创建入站防火墙规则。
更多信息请参见: http://www .windowsazure.com/en-us/develop/net/how-to-guides/service-bus-queues/
One way is to use a queue ON the Internet.
I work at Microsoft and my team owns MSMQ and we also own the Windows Azure Service Bus service. For the scenario you describe you may want to take a look at using a Service Bus Queue, which has not only the advantage of being reachable for Internet senders but also eliminates the need to create inbound firewall rules on the receive side.
More here: http://www.windowsazure.com/en-us/develop/net/how-to-guides/service-bus-queues/
最自然的选择是通过 http 使用 MSMQ,这是 MSMQ 的一个功能:
http://msdn.microsoft.com/en-us/magazine/cc164041。另
一种方法是创建一个可能具有双工轮询的 http WCF 服务,并使用 WS 路由到 MSMQ WCF 服务。
The most natural option will be to use MSMQ over http, which is a feature of MSMQ:
http://msdn.microsoft.com/en-us/magazine/cc164041.aspx
The alternative would be to create an http WCF service possibly with duplex polling and use WS-Routing to an MSMQ WCF service.
查看 NServiceBus 的网关功能。
Checkout the Gateway feature of NServiceBus.