Cache is King: Get the Most Bang for Your Buck From Ruby
summary
Uses Ruby to cut external hits: implements bulk serialization so 300 vulnerabilites go from 2,100 MySQL calls to seven (roughly 7,000 calls per 1,000 down to seven), dropping DB CPU to ~20–25% and serialization from ~6s to <1s; replaces Redis lookups with a local hash cache for a ~65% job speedup; removes Resque throttling when it causes Redis to spike (observed >50 MB/s) and notes cache invalidation pitfalls and practical limits.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 0:30Site Reliability
- 4:45Vulnerability Management
- 8:42Custom Fields
- 13:45Performance
- 16:47Solution
- 18:25Avoid Datastore Hits
- 23:37Datastore Reports
- 26:40Rescue Workers
related talks
37mCache is King: Get the Most Bang for Your Buck From Ruby
10mHigh Perfmance Caching with Rails
24mFrom Expensive Queries to Smart Caching: A DBA’s Guide for Rails
43mReal World Ruby Performance at Scale
33mEnsuring High Performance for Your Ruby App
41mUsing Databases to Pull Your Application Weight
38mFinding a needle in the haystack - Debugging performance issues
31m"Optimizing SQL Queries"
