Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Distributed Cache/Session Solution for ASP.NET Web App

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!

like image 315
Pingpong Avatar asked May 22 '11 00:05

Pingpong


3 Answers

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.

like image 108
sgvirtzman Avatar answered Sep 19 '22 05:09

sgvirtzman


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

like image 26
Haney Avatar answered Sep 18 '22 05:09

Haney


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

like image 22
TFD Avatar answered Sep 22 '22 05:09

TFD