~/talk

Solid Cache: A disk backed Rails cache

Talkat Rails World 2023 · 2023-10-05..10-06· [ruby-on-rails, web-performance]
links:none on file
slides:none on file

Built a database-backed ActiveSupport cache that runs on MySQL shards, stores hundreds of millions of rows (about 600M records per DB, ~12 TB per datacenter), and replaces Redis for large, cheap caching. Reads average ~1 ms and writes ~1.4 ms versus Redis ~0.7/0.9 ms, storage cost drops to ~25% and cost per million items is ~20× cheaper. Uses FIFO expiry with an ID-window sizing heuristic (background job every 80 writes deletes 100 oldest), flatlining table growth and cutting page load times ~40%.

AI-written summary · about

  1. 0:00Introduction to Solid Cache
  2. 1:50Design goals for Solid Cache
  3. 8:12Expiry algorithms and trade-offs
  4. 16:41Real-world performance results
  5. 20:56Installation and configuration
  6. 21:3937signals implementation details
  7. 24:52Performance comparison with Redis
  8. 26:23Cost savings and storage efficiency
  9. 27:46Cache miss rate improvements
  10. 29:09Application speed impact
  11. 30:14Conclusion and benefits
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.