问题
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