简体   繁体   English

Http绑定负载均衡器

[英]Http Binding load balancer

I am hosting a web service on IIS using HTTPS binding. 我正在使用HTTPS绑定在IIS上托管Web服务。 The client and server exchange a lot of messages for the entire duration of the session so it's critical that messages from the same client are routed to the correct server. 客户端和服务器在整个会话过程中交换大量消息,因此将来自同一客户端的消息路由到正确的服务器至关重要。 Will this binding work if I have multiple web servers behind a load balancer? 如果我在负载均衡器后面有多个Web服务器,此绑定是否有效?

Does it depend on the technology used by the client? 是否取决于客户使用的技术? My client app is implemented in Silverlight. 我的客户端应用是在Silverlight中实现的。

I use haproxy and it allows me to bind requests to a particular backend server using requests source IP. 我使用haproxy ,它允许我使用请求源IP将请求绑定到特定的后端服务器。

Another way is to break ssl on the load balances using stunnel . 另一种方法是使用stunnel打破负载平衡上的ssl。 The connection from the client to the load balancer is encrypted using your original ssl certificate (the client sees no difference), and from the load balancer to the backend using another one (or even not encrypted at all - it depends on your setup). 使用原始的ssl证书加密从客户端到负载均衡器的连接(客户端没有区别),使用另一个加密证书(从负载均衡器到后端)的连接(甚至完全不加密-这取决于您的设置)。 It's kind of a man-in-the-middle, and allows to bind request to a particular backend based on any session id (cookie or almost anything else :) ). 它有点像是中间人,并允许根据任何会话ID(cookie或几乎其他任何:))将请求绑定到特定的后端。 Check haproxy documentation for details. 有关详细信息,请查看haproxy文档。

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

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