Currently I am setting up HA proxy to route requests to my application servers.
My application servers will be running nginx with phusion passenger.
From what I understand, varnish only caches pages w/o cookies. How would this work on a dynamic website?
Say like serverfault, where you have logged in users and anonymous users. Pages may be updated by voting/comments/answers/editing etc.
How would varnish fit into the picture?
I understand the basic idea that varnish is at the top of the stack, so even if you are using memcached that will hit the web server and be "slower" than a pure cache hit at the top of the stack with varnish.