3 ms·
Not sure why this is popping up years later, but mrshoe and I presented this at PyCon in 2007. Obviously, the landscape of individual technologies has changed
by jamwt 15y ago
Not sure why this is popping up years later, but mrshoe and I presented this at PyCon in 2007. Obviously, the landscape of individual technologies has changed since then, but the basic approaches are still true and pretty language-agnostic (it was just natural at a Python conference to have the talk in Python-centric terms).
- tsuraan 15y agoUnder what circumstances is storing static media in memcache and using a lighttpd/nginx module to serve them going to be faster than using the web servers' built-in sendfile support? Sendfile is a DMA operation, and as long as the disk cache is warm (same odds as having enough RAM for memcache to keep all media, I think), it won't hit the disk after the first time the media is requested. Is reading from memcache and then sending to the client ever really better than that?
- jamwt 15y agoUh, iirc, the assumption here was that the proxy and the application server (and its resources) were not necessarily located on the same physical machine. Serving static content off the proxy is certainly another option, but it involves a different kind of deployment than having the application servers still provide the (initial) request for static content.
- tsuraan 15y agoOk, that makes sense. Thanks!