Microsoft Azure 如何处理会话状态? [英] How does Microsoft Azure handle Session State?

查看:27
本文介绍了Microsoft Azure 如何处理会话状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您选择拥有多个实例时,有人知道如何在 Azure 中管理状态吗?看起来 InProc 将毫无价值,您将不得不拥有另一个状态服务器实例,或者使用数据存储跨服务器存储用户状态.

Does anyone have any information on how state is managed in Azure when you choose to have multiple instances? It seems like InProc would be worthless and you would have to have another state server instance, or use the datastore to store the users state across servers.

或者它是否实现了粘性会话,因此 InProc 就是您所需要的.

Or does it implement sticky sessions, so InProc is all you need.

在这里找到答案:Azure 论坛

推荐答案

Table Storage 将是最合乎逻辑的地方.其他服务器场类型设置也使用数据库表来存储会话信息.

Table Storage would be the most logical place. Other server farm type setups also use a database table to store session info.

查看 Windows Azure SDK 示例中的 AspProviders 项目.它有一个使用 Azure 表存储的 SessionState 提供程序.

Take a look at the AspProviders project in the Windows Azure SDK samples. It has a SessionState provider that uses Azure Table Storage.

这篇关于Microsoft Azure 如何处理会话状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆