2 ms·
Under 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' buil
by tsuraan 16y ago
Under 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 16y 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 16y agoOk, that makes sense. Thanks!