Hello!
On Fri, Dec 20, 2013 at 3:12 AM, jerome lafon wrote:
> Can someone explain me what are the advantages of using SRCACHE with REDIS
> for example instead of using the nginx directive fastcgi_cache_path to
> define a cache area and fastcgi_cache to use it?
>
The combination ngx_srcache + memcached/redis at least has the
following advantages:
1. You have LRU for free when running out of the space.
2. You can have multiple nginx servers sharing the same cache.
3. You can easily scale your shared cache to multiple nodes and do the
load-balancing yourself,
4. It is trivial to purge or flush items in the cache.
5. You can cache arbitrary locations' responses, not only those
configured by ngx_proxy, ngx_fastcgi, and alike. For example, you can
use it to cache the responses generated by ngx_drizzle, ngx_lua, and
ngx_postgres.
Best regards,
-agentzh