High Perfmance Caching with Rails
summary
Explains a record-level caching approach for Rails that stores serialized models in memcache, caches secondary indexes as small ID-only entries, and uses a cache-version integer to invalidate whole models by bumping keys. Claims scale to hundreds of thousands of memcache requests per second with a 98% cache hit rate. Notes that rendering still happens after fetch, raw SQL and migrations require manual invalidation, update_all/delete_all are handled, and complex ActiveRecord chaining is not yet supported.
AI-written summary · about
chapters (5)
- 0:00Introduction to caching
- 1:06Comparing caching strategies
- 2:51Implementing record cache
- 6:13Addressing caching trade-offs
- 7:44Invalidation and performance








