Benefits of Varnish vs nginx/ncache?

Per Buer perbu at
Thu Apr 21 09:55:56 CEST 2011

On Mon, Apr 18, 2011 at 2:36 PM, James Thornton <james at>wrote:

> When you have nginx as a reverse proxy to your application servers,
> what are the benenfits of adding Varnish as the caching layer between
> nginx and the app servers (as depicted here
> vs having nginx perform the
> caching, now that ncache is built into nginx?

Varnish has VCL, which makes it more flexible than the cache built into
Nginx.  The Nginx cache is a "look we can do caching as well" whereas
Varnish is only built for caching.

I don't know that much about nginx, but I would guess features such as
"saint mode", grace, etc. are hard to implement with nginx. The simple stuff
should be reasonably comparable.


Phone: +47 21 98 92 61 / Mobile: +47 958 39 117 / Skype: per.buer
*Varnish makes websites fly!*
Whitepapers <> |
Video<> |
Twitter <>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list