10

Can we use a Varnish cache server to serve ASP.NET pages? My intention is to host another cache server to improve the performance by caching most accessed and shared data. To rent another IIS server, it will cost again.

Instead can I use any another cache server like Varnish/Squid to store web pages and serve cached data?

ram
  • 101
  • 1
  • 4
  • 4
    Wouldn't you just be better off using .Net's output caching? http://msdn.microsoft.com/en-us/library/06bh14hk.aspx – thewinchester Apr 08 '12 at 18:34
  • 1
    @thewinchester It wouldn't surprise me at all if the answer to that question was a big fat resounding NO. – Mick Sep 23 '14 at 01:19

1 Answers1

3

Varnish could be used to cache IIS data but the real question is would it make IIS faster in the first place?

This depends on the load of your IIS server of course, but given that caching would be relevant (actually speeding up things) then you probably would benefit from testing other, more scalable options here is a comparison of Varnish, Nginx, ATS, Lighty, etc..

grettan
  • 39
  • 2
  • 3
    Ofcourse it wont make IIS faster. But thats never the intention of Varnish. Varnish is a HTTP accelerator, its something that sits in front of your webserver and caches/servers your static pages. That way alot of your traffic never even reaches your webserver. – Danthar May 11 '13 at 22:33
  • 3
    Using just .net caching for big sites its not enough, what we did was simply added varnish cluster installed on linux... and fixed the .net backend application to invalidate the varnish cache... That took 95 percent of the requests off the iis. – Gabriel Jan 24 '14 at 19:01
  • 1
    It doesn't make IIS faster or slower, it runs the same. Varnish speeds up everything by caching what IIS serves, and is serverd from Varnish! Not IIS!. – Piotr Kula May 12 '15 at 12:03