如何在 Windows Azure 上使用多个实例的 asp.net 缓存
大家好,如果我有一个在多个实例下运行的 Azure Web 应用程序,我该如何使用 ASP.NET 缓存。 azure 团队是否为 azure 编写了任何缓存提供程序?
我在某处读到他们将来将支持速度,但如果我必须在接下来的几个月内使用某些应用程序,我可以缓存数据的最佳方式是什么(我不想使用 sql server 缓存,因为这简单地击败了我的首先缓存的目的)
hey guys if i have an azure web app running under multiple instances how do i use asp.net cache. has the azure team written any cache providers for azure?
i read somewhere they are going to support velocity in future but if i have to go live with some app in next couple of months what is the best way i can cache my data (i dont want to use sql server cache as that simply defeats my purpose of caching in the first place)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
现在有几个选项 -
1) 查看 azuresqlsession.codeplex.com - 一个与 SQL Azure 配合使用的自定义会话提供程序。它比 Microsoft 编写的使用 Azure 表存储的自定义提供程序要快得多。
2) 还有“AppFabric Caching”——在 Azure 数据中心运行的分布式缓存。 Microsoft 还编写了一个与 AppFabric 缓存配合使用的自定义会话提供程序。目前它在 CTP 中,您可以在此处获取它 - Portal.appfabriclabs.com - 这里有关于如何使用它的很好的概述 - http://blogs.msdn.com/b/windowsazureappfabric/archive/2010 /10/28/introduction-to-windows-azure-appfabric-caching-ctp.aspx?wa=wsignin1.0 - 以及 azure sdk 1.3 实验室中。
我意识到这个问题不久前被问过 - 我只是想如果有人在谷歌/必应搜索后偶然发现这个问题我会更新它。
美好时光!
关于我/ehuna
There are a few options now -
1) Check out azuresqlsession.codeplex.com - a custom session provider that works with SQL Azure. It's much faster than the custom provider Microsoft wrote that works with azure table storage.
2) There's also "AppFabric Caching" - a distributed cache that runs in the azure data centers. Microsoft also wrote a custom session provider that works with AppFabric Caching. Currently it's in CTP and you can get it here - portal.appfabriclabs.com - there's a good overview on how to use it here - http://blogs.msdn.com/b/windowsazureappfabric/archive/2010/10/28/introduction-to-windows-azure-appfabric-caching-ctp.aspx?wa=wsignin1.0 - and also in the azure sdk 1.3 labs.
I realize the question was asked a while back - I just thought I'd update it if someone stumbled upon the question after a google/bing search.
Good times!
about.me/ehuna
我只是想更新最新的信息,因为我刚刚偶然发现了这篇文章:
Windows Azure 缓存已上线并正在全面运行,请在此处了解更多信息:
http://msdn.microsoft.com/en-us/library/windowsazure/gg278356.aspx
下面是一个示例,展示如何使用 Windows Azure使用 ASP.NET 应用程序进行缓存:
https://www.windowsazure .com/en-us/develop/net/how-to-guides/cache/
I just wanted to update with latest Info as I just stumbled upon this post:
Windows Azure Cache is live and running in full Swing, learn more here:
http://msdn.microsoft.com/en-us/library/windowsazure/gg278356.aspx
Here is an example to show how to use Windows Azure Cache with ASP.NET application:
https://www.windowsazure.com/en-us/develop/net/how-to-guides/cache/
Microsoft 计划实施 Windows Azure 缓存提供程序(当 ASP.NET 缓存扩展性随 .NET 4.0 一起提供时)。
与此同时,您是否可以在每个实例上单独缓存,然后使用队列存储在实例之间发送消息以使缓存失效?
Microsoft plans to implement a Windows Azure Cache Provider when ASP.NET Cache extensibility ships with .NET 4.0.
In the meantime, could you cache separately on each instance and then maybe use queue storage to message between instances for cache invalidation?