Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore advanced Rails caching strategies in this 34-minute conference talk that builds upon fundamental caching concepts to deliver significant performance improvements. Begin with essential Rails caching techniques including fragment caching, Russian doll caching, low-level caching with Rails.cache, SQL query caching, and various cache store options like memory store, file store, Memcached, and Redis. Discover the critical importance of cache hierarchies and proximity, learning how access speeds vary dramatically from CPU internal cache (1 nanosecond) to spinning disk access (10 milliseconds) - a 10-million-fold performance difference. Master practical optimization techniques such as caching data as close to the CPU as possible, optimizing ActiveRecord by caching essential attributes as JSON or lightweight data structures instead of full objects, minimizing unnecessary cache retrievals, and implementing cache preloading and warming strategies. Gain insights into when to use database-level caching through materialized views or denormalized tables versus network-based solutions like Redis, and learn to anticipate and prevent cache misses before they impact performance.
Syllabus
RailsConf 2025 Cache = Cash! 2.0 by Stefan Wintermeyer
Taught by
Ruby Central