~/talk

Migrating Shopify’s Core Rails Monolith to Trilogy

Talkat Rails World 2023 · 2023-10-05..10-06· [ruby-on-rails, databases]
slides:none on file

Shopify replaces Mysql2 with Trilogy in its largest Rails monolith, adding multi-statement support to the Trilogy Ruby bindings, upstreaming the ActiveRecord adapter into Rails 7.1, and adapting tools like Semian and OpenTelemetry. Rollout runs at 1% of pods, then 100% of a cluster, then full production; CI stays on Mysql2 while daily Trilogy branch tests run. Observed latencies drop from 3.46 ms to 2.7 ms (≈22% faster) and per-query time from 1.49 ms to 1.24 ms.

AI-written summary · about

  1. 0:00Introduction
  2. 0:36Meet Adrianna
  3. 2:34Agenda
  4. 3:11Climbing a Mountain
  5. 3:44What is Trilogy
  6. 5:13Why switch to Trilogy
  7. 6:31Caveats to Trilogy
  8. 7:44Why Trilogy
  9. 9:14Making Trilogy a Rails Community Standard
  10. 9:30Moving to Trilogy in an Existing Rails App
  11. 14:58Other Considerations
  12. 18:26External Tooling
  13. 22:04Scaling
  14. 24:10Upstream Trilogy to Rails
  15. 27:14Conclusion
~/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.