News for hackers. Stuff that matters.
Re:The Minimum Viable Rails Stack, Now Reddit Frontpage Appr... by notatoad on Saturday September 15, 2012 @02:07AM (#4525475)
When you say static content, do you mean actual static content, or dynamic-but-still-kind-of-static? Actual static content like CSS files and background images doesn't get any benefit from varnish. Something like the HN front page, where it is dynamic but consistent for all users at a specific point in time, is what you need to put behind varnish.
Re:The Minimum Viable Rails Stack, Now Reddit Frontpage Appr... by autotravis on Saturday September 15, 2012 @11:12AM (#4526242)
Both. Varnish defaults to caching jpg,gif,png,css,etc. but we also having it caching things that are pulled from the db and processed. So it leaves our cpu-intensive backend untouched for the vast majority of requests.
Re:The Minimum Viable Rails Stack, Now Reddit Frontpage Appr... by kevinprince on Saturday September 15, 2012 @05:38AM (#4525764)
In high traffic caching css and images in varnish as well makes sense as it is much faster at evaluating and responding to the HTTP request than say Apache which will be busy building dynamic requests.
Re:The Minimum Viable Rails Stack, Now Reddit Frontpage Appr... by justincormack on Saturday September 15, 2012 @09:12AM (#4526016)
Not really the case if you are using Nginx though.