简体   繁体   English

Azure appfabric服务总线负载平衡+会话亲和力(粘性会话)

[英]Azure appfabric service bus load balancing + session affinity (sticky session)

I was searching through Internet, and what I've found is just it is not possible on Azure external/internal endpoint... How does Windows Azure perform load balancing? 我正在通过互联网进行搜索,我发现只是在Azure外部/内部端点上无法实现... Windows Azure如何执行负载平衡?

But what I am looking for is, whether session affinity is possible on Service Bus. 但我正在寻找的是,服务总线上是否可以实现会话亲和性。 I even done my own research, with modified EchoSample , but with no success. 我甚至用修改过的EchoSample进行了自己的研究,但没有成功。 I've tried ws2007HttpRelayBinding and netTcpRelayBinding and end up with: 我已经尝试过ws2007HttpRelayBindingnetTcpRelayBinding并最终得到:

System.ServiceModel.CommunicationException: The remote endpoint no longer recognizes this sequence. System.ServiceModel.CommunicationException:远程端点不再识别此序列。 This is most likely due to an abort on the remote endpoint. 这很可能是由于远程端点中止。 The value of srm:Identifier is not a known Sequence identifier. srm:Identifier的值不是已知的Sequence标识符。 The reliable session was faulted. 可靠的会议出了问题。

So, the question: It is possible to do "service bus load balancing + session affinity"? 那么,问题是:有可能做“服务总线负载平衡+会话亲和力”吗?

There is no way to have sessions persist across Azure to my knowledge. 根据我的知识,无法在Azure中保持会话。 You cannot make any assumptions about which node you will get due to node availability changes. 由于节点可用性更改,您无法对将要获得哪个节点进行任何假设。 If you need session state - you need to manage it externally from the front end bus (azure database, azure storage, remote db, remote storage etc.). 如果您需要会话状态 - 您需要从前端总线(azure数据库,azure存储,远程数据库,远程存储等)进行外部管理。 This can be potentially one of the issues with the cloud - you don't get total control anymore. 这可能是云的问题之一 - 您无法再获得完全控制权。 You just have to get creative with how you solve it. 您只需要对如何解决它而发挥创意。

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

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