简体   繁体   English

Azure Service Bus中继指南

[英]Azure Service Bus relay guidance

We are building a web and mobile application that will be hosted in Azure. 我们正在构建将在Azure中托管的Web和移动应用程序。 We need this application to retrieve and update data in our on-premise database and our firewall restrictions prevent inbound firewall rules to be created. 我们需要此应用程序来检索和更新本地数据库中的数据,并且我们的防火墙限制阻止了入站防火墙规则的创建。

I need convey the architecture to other technology divisions. 我需要将该架构传达给其​​他技术部门。

  1. I downloaded the ServicveBusRelay training kit demo ( https://github.com/WindowsAzure-TrainingKit/Demo-ServiceBusRelay ) and it worked but the "sb://name.servicebus.windows.net/Customer" relay it creates is removed when I close the console application, is this normal? 我下载了ServicveBusRelay培训工具包演示( https://github.com/WindowsAzure-TrainingKit/Demo-ServiceBusRelay ),它可以正常工作,但是在创建“ sb://name.servicebus.windows.net/Customer”中继时将其删除。我关闭控制台应用程序,这正常吗? I also can't see it listed in the Service Bus explorer, but I can see it in the Portal? 我也看不到它在服务总线资源管理器中列出,但是我可以在门户中看到它吗?

  2. Relay doesn't use brokered messaging(queues, topics, subscriptions)? 中继不使用代理消息传递(队列,主题,订阅)?

  3. What is the most secure method to authenticate (Symmetric Key, X.509 Cert, Password)? 什么是最安全的身份验证方法(对称密钥,X.509证书,密码)?

  4. What are the pro's and con's of different bindings (NetTCPRelayBinding, BasicHTTPRelayBinding, etc) for example security and performance? 不同绑定(NetTCPRelayBinding,BasicHTTPRelayBinding等)的优缺点是什么(例如安全性和性能)?

  5. How are the outbound connections kept alive? 出站连接如何保持活动状态?

1) That is because the relay endpoint that was created is dynamic. 1)这是因为创建的中继端点是动态的。 You can create persistent endpoints using the NamespaceManager . 您可以使用NamespaceManager创建持久性端点。 The endpoint will not go away when your console app closes. 控制台应用程序关闭时,端点不会消失。

2) Relay does not use brokered messaging -- it uses WCF 2)中继不使用代理消息传递-它使用WCF

3) You can use WCF-level auth if you want, but with Relay you can use ACS or SaS keys to authenticate (both found on the portal). 3)如果需要,可以使用WCF级别的身份验证,但是通过中继,您可以使用ACS或SaS密钥进行身份验证(均在门户网站上找到)。

4) It is the same trade-off for TCP vs HTTP connections. 4)TCP与HTTP连接的权衡取舍相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM