~/talk

How Shopify Scales Rails

Talkat RailsConf 2013 · 2013-04-29..05-02· [ruby-on-rails, devops-and-delivery]
slides:none on file

Shopify claims one Rails codebase evolves to handle 40k stores and spikes to ~500k sales/day by adding layers not rewrites: cachable page caching (gzipped, generational keys), identity cache for model read‑through memcached objects, backgrounding via Resque to remove work from Unicorn processes, and a custom load tester Conan. Monitoring stack is New Relic, Splunk, statsd; DB work uses Percona tools, MySQL tuning and TCMalloc. Measured wins: 10–15x DB speed from in‑memory working set and big RPM reductions after caching.

AI-written summary · about

  1. 0:00Intro
  2. 0:23Overview
  3. 2:12The Stack
  4. 6:00Looking Back, to Look Ahead
  5. 10:20Know The System
  6. 12:05Chive Flash Sale
  7. 13:03Measure ALL THE THINGS
  8. 14:26New Relic
  9. 14:53Splunk
  10. 16:52cacheable
  11. 19:09Caching Dynamic 404s
  12. 20:22Identity Cache
  13. 23:34Delayed Job
  14. 24:17Resque
  15. 26:47Redis
  16. 28:15MySQL Hardware
  17. 28:51MySQL Query Optimization
  18. 30:24MySQL Tuning
  19. 33:51after_commit
  20. 36:10Services
  21. 37:06Imagery
~/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.