共享(Web-Farm)ASP.NET Web 两层环境

发布于 2024-12-22 20:56:10 字数 182 浏览 2 评论 0原文

如果您在 Web 层前面使用 F5 负载均衡器(粘性会话),我是否可以拥有一个共享的两层 Web 应用程序环境,该环境可以拥有具有两种不同会话管理配置的 Web 应用程序?例如,Web 应用程序#1 使用进程内会话管理,而 Web 应用程序#2 使用单独的会话状态服务器?这两个 Web 应用程序都位于 IIS 的 Web 层,而数据库则位于数据层。

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? For example, web app # 1 uses In-Process session management and web app # 2 uses a separate session state server? Both web application sit in IIS in the web-tier and database sitting in the data tier.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

薄荷梦 2024-12-29 20:56:10

是的,您使用的会话管理类型是根据网络应用程序确定/设置的。不要求同一服务器(或 AppPool)上的多个应用程序使用相同的方案。

通过粘性会话,每个客户端将始终连接到同一服务器/Web 应用程序实例,因此您甚至可以让服务器 #1 上的 Web 应用程序 #1 使用 InProc,而服务器 #2 上的 Web 应用程序 #1 使用 StateServer。当然,不推荐(也不是粘性会话),但有可能。

Yes, the type of session management you use is determined/set per web app. There's no requirement that multiple apps on the same server (or AppPool) use the same scheme.

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. Not recommended, of course (nor are sticky sessions), but possible.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文