~/talk

What the Cache?!

Talkat RailsConf 2014 · 2014-04-22..04-25· [web-performance, ruby-on-rails]
slides:none on file

Claims that Rails with MySQL can survive half a billion requests per day by avoiding queries and layering caches, and shows concrete tactics: versioned cache keys with an integer stored in memcached, staggered or stale-serving TTLs so one process refreshes while others serve the old value, using messaging (MessagePack) instead of Marshal to cut marshaling CPU and size, and adding a local LRU cache per process to avoid repeated deserialization. Implements a memcached lock/flag to prevent stampedes and reports it working in production.

AI-written summary · about

  1. 0:00Introduction
  2. 1:25Mobile ad tech caching challenges
  3. 3:11Caching for user experience
  4. 5:21Cache stampede problem
  5. 7:11Cache invalidation overload
  6. 10:11Solutions for stampede
  7. 12:46Short TTL caching
  8. 14:30Cache entry versioning
  9. 17:26Serialization performance
  10. 19:41Benchmarking formats
  11. 21:35Version numbers in cache
  12. 22:59Local in-process caching
  13. 24:53Implementing LRU cache
  14. 27:28Cross-process invalidation
  15. 29:41Using memcache for inter-process communication
  16. 31:12Final solution results
~/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.