nginx with Memcache Vs Varnish

view full story

http://serverfault.com – I was wondering if anyone has any comments / benchmarks / suggestions on Varnish Vs Memcache when used to serve content (usually 2-5kb JS file depending on the parameters in request; thousands of diff files are possible) Currently we are using nginx + Varnish + LAMP to do this. I was reading about memcached module of nginx and was wondering if anyone has any benchmarks for caching content in Memcache and serving them directly from nginx (or pulling from LAMP incase of a miss), rather then passing the request to Varnish and letting it do the same job. Overall, is there any benchmark on setti (HowTos)