【发布时间】:2018-10-15 05:37:27
【问题描述】:
我使用 Azure 服务总线 (ASB) 消息作为 Message-oriented middleware (MOM)。具体来说,主题和订阅作为 Pub-Sub 解决方案。
我在 Azure Service Fabric (ASF) 集群中使用 ASB。 ASF 集群管理可以对节点进行洗牌,这将终止与 ASB 的连接。
我想知道优雅终止连接的正确方法是什么?
我正在考虑在未来的集群中使用 Pub-Sub 解决方案。这将解决它和其他问题。
请检查此链接以了解为什么我要保持连接处于活动状态: "Establishing a connection is an expensive operation that you can avoid by re-using the same factory and client objects for multiple operations."
【问题讨论】:
-
确保你看看这个社区包:github.com/loekd/ServiceFabric.ServiceBus
标签: messaging azure-service-fabric azureservicebus