~/talk

How Shopify Sharded Rails

Talkat Big Ruby 2014 · 2014-02-20..02-21· [ruby-on-rails]
slides:none on file

Shopify shards a once-single Rails DB in 2013 to handle ~150k requests per minute with peaks near 400k and $1.6B GMV and ~88k paying shops, doubled the number of databases and builds a block-based connection switcher plus a charted-model concern. Primary keys use a MySQL auto-increment trick instead of a separate ID service. Verifiers catch cross-chart queries, a locking migrator copies shops live, and production sees 80ms average response time through CyberMonday.

AI-written summary · about

  1. 0:00Start
  2. 2:20Cons of sharding
  3. 6:09Sharding Shopify
  4. 8:34Denormalize
  5. 9:33Primary keys
  6. 11:59Connection switching
  7. 15:02Rebalancing
  8. 17:57What about JOINS
  9. 19:33How long did it take?
  10. 20:58OMG Cybermonday
~/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.