News for hackers. Stuff that matters.
Re:Tumblr: Hashing Your Way to Handling 23,000 Blog Requests... by nkozyra on Monday August 04, 2014 @03:44PM (#8133623)
Tough to quantify "obsolete." You can put caching layer upon caching layer upon caching layer, but diminishing returns kick in almost immediately.

Ideally you have one caching model to rule them all, unless you're doing a lot of module-specific caching (ie, this element should be cached longer than this element, etc.)

Re:Tumblr: Hashing Your Way to Handling 23,000 Blog Requests... by bobjenk on Monday August 04, 2014 @04:24PM (#8133813)
Well at the moment, I would consider Redis more useful than Varnish due to expired events. As to follow the "one caching model to rule them all" rule, how about using ngx_lua to dynamically change a static .html file with the data from Redis thus cutting out php-fpm (unless they are logged in, then requests will go directly to php-fpm)?

Or use Varnish, use Redis for expired events but with an empty value and use keyspace notifications to automatically remove the data related to that key from the database and purge Varnish.