today i want to continue my little series about how to use redis as rails cache. i will show you how to build a caching system that does not rely on cache invalidation and is able to constantly deliver up to date cached results.
in my last article about using redis as rails cache i used the redis ‘keys’ function to invalidate cache. as my readers noted, and i experienced myself, this is not a good idea if you plan on storing a few million keys in your redis-db. so today we’ll look at how to do this invalidation […]
here at rapidrabbit we deliver many 1,000 requests per second. doing this while only using a handful of servers and ruby on rails we employ very clever caching using redis and nginx. once the cache is written, it is directly accessed by nginx via a module, which makes it around 500-2,000 times faster than any […]