Storing Session State in an ASP.Net Web Farm (Memcachedb or…?)

不羁的心 提交于 2020-01-07 08:55:13

问题


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.

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 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.

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?

Many thanks


回答1:


There is a Memcached session provider for ASP.NET on codeplex site.

AppFabric has ASP.NET session state provider.

This SO question may help a little bit.




回答2:


Here's another Memcached session provider at github - https://github.com/rohita/MemcachedSessionProvider



来源:https://stackoverflow.com/questions/5566392/storing-session-state-in-an-asp-net-web-farm-memcachedb-or

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!