Foundations for Product Management Success
AI Adoption - Drive Business Value and Organizational Impact
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore advanced Rails caching techniques in this 34-minute conference talk that builds upon the foundational "Cache = Cash!" presentation from 2013. Begin with Rails caching fundamentals including fragment caching, Russian doll caching, low-level caching with Rails.cache, SQL query caching, and cache store options like memory store, file store, Memcached, and Redis. Discover the critical importance of cache hierarchies and understand how proximity to the CPU dramatically affects performance, from L1 cache access at 1 nanosecond to spinning disk access at 10 milliseconds—a 10-million-fold difference in speed. Learn practical optimization strategies including caching data as close to the CPU as possible, optimizing ActiveRecord for caching efficiency by storing essential attributes as JSON or lightweight data structures instead of full objects, minimizing unnecessary cache retrievals, and implementing cache preloading and warming techniques. Master when to use database-level caching through materialized views or denormalized tables versus network-based solutions like Redis, and gain insights into preventing performance bottlenecks by anticipating cache misses before they occur.
Syllabus
RailsConf 2025 Cache = Cash! 2.0 by Stefan Wintermeyer
Taught by
Confreaks