4 ms·
Perhaps better a better question is why you were using Varnish in the first place? I'm genuinely curious because I've never stood up Varnish before so maybe th
by dwightgunning 11y ago
Perhaps better a better question is why you were using Varnish in the first place?
I'm genuinely curious because I've never stood up Varnish before so maybe there's an anti-pattern / gotcha to learn from.
- frankwiles 11y agoWell without some sort of caching, his site very well could fall over when being on the front page of something like HN. Putting Varnish in front a site, even with something simple like a 1 minute cache on everything, makes you pretty much immune from having "large amounts of traffic" being a real problem.
- coleifer 11y agoExactly, thanks frank! :P
- dwightgunning 11y agoBy removing varnish aren't you now exposed to that risk once again? I feel like I am missing something.
- mfjordvald 11y agoHe would have been if it hadn't replaced the Varnish functionality with nginx. He's basically just moving functionality from Varnish to nginx and thus simplifying his stack a bit.
- Tushon 11y agoNginx can cache static content of any type, so it can act as varnish for both his blog content and images and resize them on the fly instead of relying on multiple image sizes on disk or a separate app to serve images. Nginx is a highly efficient webserver when it is already holding the items in cache (and otherwise, it passes off dynamic content just fine but that is then up to the underlying application to perform as well).