在 ASP.Net Web Farm(Memcachedb 或...?)中存储会话状态 [英] Storing Session State in an ASP.Net Web Farm (Memcachedb or...?)
问题描述
我们有一个 ASP.Net [MVC] 网络农场(运行 IIS 的 Windows Server 2008 R2).我们希望在每个盒子之间共享会话状态.
We have an ASP.Net [MVC] web farm (Windows Server 2008 R2 running IIS). For which we want to share session state across each box.
我知道我们可以用 SQL Server 做到这一点,但我明白这会产生开销(有人提到性能下降 25%).
I'm aware that we can do this with SQL Server, but understand that there is an overhead to this (someone mentioned a 25% drop in performance).
Memcachedb 一再被提及,但我似乎无法找到一种方法将它挂接到 ASP.Net 以达到会话状态.
Memcachedb keeps getting mentioned time and time again, however I can't seem to find a way to hook it into ASP.Net for the purpose of session state.
有没有人把 Memcachedb 与 .Net 的成功实现结合起来?或者是否有其他关于跨所有框存储会话状态的最佳方法的建议?
Has anyone put together a successful implementation of Memcachedb with .Net? Or are there other suggestions on the best approach to storing session state across all boxes?
非常感谢
推荐答案
codeplex 上有一个用于 ASP.NET 的 Memcached 会话提供程序 网站.
There is a Memcached session provider for ASP.NET on codeplex site.
AppFabric 具有 ASP.NET 会话 状态提供程序.
AppFabric has ASP.NET session state provider.
这个SO问题可能会有所帮助.
这篇关于在 ASP.Net Web Farm(Memcachedb 或...?)中存储会话状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!