Distributed Cache/Session Solution for ASP.NET Web

2019-03-26 01:45发布

问题:

I am looking for a distributed Cache/Session solution, below is what I found. I hope anyone could share information regarding pros and cons of using it:

  1. NCache

  2. Windows Server AppFabric

  3. MemCached as recommended by @TFD

I am using ASP.NET 4 and SQL Server 2008.

Any idea would be very much appreciated!

回答1:

You can also look at Redis (http://redis.io/), which is rumored to play very nicely with .NET applications thanks to an open source client for it written in C#: http://code.google.com/p/servicestack/wiki/ServiceStackRedis.



回答2:

Give Dache a go - an open source .NET distributed caching solution that is highly performant. http://www.getdache.net



回答3:

Use memcached, it's free, works well, runs on cheap *nix boxes, well proven

Memcached can be run on Windows for testing etc.

Various client libraries for .Net on memcached/wiki/Clients

And a pre-rolled session and cache provider if you don't feel like doing it yourself


If you are not familiar with *nix style OS's, download Ubuntu server image and burn to disc. Pop the disk into a empty machine with plenty of RAM and follow default prompts until finished (~30 minutes)

Then on the command line enter "apt-get install memcached"

Reboot to check it starts and all is OK and you are done



回答4:

Try using NCache as it is one of the pioneer in the field of distributed caching. The wide range of caching topologies which NCache offered along with it's other features makes it probably the best cache provider in the market. NCache is an enterprise level distributed cache for .NET and Java and also provides a fast and reliable storage for ASP.NET and JSP Sessions. As far as comparison of NCache with it's competitors are concerned, please watch this video,

Feature comparison of NCache Vs AppFabric