简体   繁体   English

共享(Web农场)ASP.NET Web二级环境

[英]Shared (Web-Farm) ASP.NET Web Two-Tiered Environment

If you using a F5 load balancer (sticky sessions) in front of the web-tier, can I have a shared two-tiered web application environment that can have web-applications with two different session management configurations? 如果您在Web层前面使用F5负载平衡器(粘性会话),我是否可以拥有一个共享的两层Web应用程序环境,该环境可以使Web应用程序具有两个不同的会话管理配置? For example, web app # 1 uses In-Process session management and web app # 2 uses a separate session state server? 例如,Web应用程序1使用进程内会话管理,而Web应用程序2使用单独的会话状态服务器? Both web application sit in IIS in the web-tier and database sitting in the data tier. 这两个Web应用程序都位于Web层中的IIS中,而数据库则位于数据层中。

Yes, the type of session management you use is determined/set per web app. 是的,您使用的会话管理类型是根据每个Web应用程序确定/设置的。 There's no requirement that multiple apps on the same server (or AppPool) use the same scheme. 不需要同一服务器(或AppPool)上的多个应用程序使用相同的方案。

With sticky sessions, each client will always be connected to the same server / web app instance, so you could even have web app #1 on server #1 use InProc, and web app #1 on server #2 use StateServer. 使用粘性会话时,每个客户端将始终连接到同一服务器/ Web应用程序实例,因此您甚至可以使服务器#1上的Web应用程序#1使用InProc,而服务器#2上的Web应用程序#1使用StateServer。 Not recommended, of course (nor are sticky sessions), but possible. 当然不推荐(也不是粘性会议),但是可以。

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

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