~/talk

Cache is King

Talkat RailsConf 2019 · 2019-05-01..05-03· [web-performance]
github:mstruve
slides:none on file

Shows concrete wins using Ruby and Rails with MySQL Redis and Elasticsearch: replaces ActiveModelSerializers with Bulk Serialization and a cache class to drop 2,100 DB calls for 300 items down to seven and move RDS CPU from 100% to ~25%, swaps Redis lookups for a local hash to cut Redis hits and give ~65% faster jobs, uses the ActiveRecord connection object to avoid Redis for sharding, removes Resque throttling to stop Redis overload — real numbers and working fixes.

AI-written summary · about

  1. 0:00Introduction
  2. 4:51Kenna Security
  3. 6:35Bulk Serialization
  4. 11:46Redis Get Requests
  5. 14:43Local Cache vs Redis
  6. 17:47Solution
  7. 19:53Avoid
  8. 28:34Rescue Workers
~/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.