Azure 中的 ASP.NET 会话状态提供程序 [英] ASP.NET session state provider in Azure

查看:36
本文介绍了Azure 中的 ASP.NET 会话状态提供程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,目前的情况是这样的:

As far as I know, the current situation is this:

  1. 可以使用 SQL 会话状态提供程序(正如我在某处读到的那样),但 Microsoft 不支持它.所以它可能在未来停止工作.它还需要一个 WorkerRole 来删除过时的数据.
  2. Azure AppFabric 缓存服务仍在 CTP 中.
  3. TableStorageSessionProvider 是 Azure 培训工具包中的一段代码,不推荐用于生产代码.

你会选择什么?

推荐答案

如果您本周要上线,我会推荐 SQL Azure 会话状态提供程序.有一篇很棒的博客文章 这里 提供了一切你需要.

您说得对,Azure 并未正式支持此解决方案.但是,它现在应该可以正常工作,一旦上线,您就可以很容易地转移到 Azure AppFabric 缓存(如 Igor 所建议的).

You're correct in that this solution isn't officially supported by Azure. However, it should work fine for now, and you can very easily shift to Azure AppFabric Caching (as suggested by Igor) once that goes live.

**EDIT 6/16/2014 ** 请参阅 15 分钟内使用 Azure Redis 缓存的 MVC 电影应用

**EDIT 6/16/2014 ** See Azure Redis Cache (Preview) ASP.NET Session State Provider section of MVC movie app with Azure Redis Cache in 15 minutes

EDIT 5/23/2012 自这个答案以来发生了很多变化.截至 2011 年 8 月,SQL Azure 中的缓存已通过 Universal Providers 得到正式支持.在这个博客上查看更多信息邮政.100MB 数据库的起价为 4.99 美元.

EDIT 5/23/2012 Lots of changes since this answer. As of August 2011, cache in SQL Azure is officially supported, via Universal Providers. See more info on this blog post. Pricing starts at $4.99 for a 100MB database.

AppFabric Cache 于 2011 年 5 月上线.Cache 起价为 128MB,价格为 45 美元.AppFabric 缓存的详细信息位于此处.请注意,我们对交易数量、连接数量和带宽(以及存储容量)设置了每小时配额.

AppFabric Cache is live as of May, 2011. Cache starts at 128MB for $45. Details of the AppFabric Cache are here. Note that there are hourly quotas in place on number of transactions, number of connections, and bandwidth (as well as storage capacity).

EDIT 6/7/2012 另一个更新:随着 2012 年春季版本的发布,现在可以使用现有 Web 或工作角色中的一定比例的 RAM 创建缓存(无需任何费用),以及一个新的缓存角色,用于在您的部署中创建专用的高速缓存(用于实例成本).Scott Guthrie 在博客这里.这些功能在新的 v1.7 SDK 中可用.

EDIT 6/7/2012 Yet another update: With the Spring 2012 release, there's now the ability to create a cache using a percentage of RAM in your existing Web or Worker roles (costing nothing), as well as a new Cache Role to create dedicated high-speed cache within your deployment (for the cost of the instances). Scott Guthrie blogged about it here. These features are available in the new v1.7 SDK.

这篇关于Azure 中的 ASP.NET 会话状态提供程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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