📜 ⬆️ ⬇️

NGINX learned to cache proxied requests

Almost a year ago, Igor Sysoev announced support for caching in future versions of nginx at RIT 2008. And today a new beta came out nginx 0.7.44 , in which this long-awaited caching appeared

This functionality will be primarily appreciated by developers of high-load systems, for which the operation of establishing a network connection with the backend is “more expensive” than a regular disk operation (in terms of resource costs)

At RIT 2008, the author noted that the big advantage of nginx over the squid daemon, which can also be used as reverse proxy, is the lack of starting inhibition when squid starts scanning the cache directory, popularly called “give squid”.
')
It should be noted that a certain similarity of caching could be achieved by using the directives proxy_store + try_files , but managing such a cache was quite difficult and expensive.

It would be very interesting to hear feedback from users who mounted the cache on an SSD disk.

Source: https://habr.com/ru/post/55309/


All Articles