~/talk

Modularizing Rails Monoliths One Bite at a Time

Talkat Rocky Mountain Ruby 2023 · 2023-10-05..10-06· [ruby-on-rails]
slides:none on file

Claim: a phased modular-monolith refactor using the packwerk gem and lightweight eventing actually reduces coupling and avoids microservice pain. The team moves code into packs with package.yml, runs packwerk check/update/validate to manage violations (initially ~450,000) and clears circular deps, swaps ActiveRecord return types for plain Ruby data objects, and uses rails-event-store for pubsub. A 170-contributor app regains fast tests and clearer ownership, and the approach demonstrably works in production.

AI-written summary · about

  1. 0:00Introduction
  2. 1:30The challenge of scale
  3. 4:45Introducing packwerk
  4. 9:23Phase 1: Planning and moving
  5. 15:32Phase 2: Dependencies
  6. 19:54Phase 3: Public interfaces
  7. 28:18Maintenance and conclusion
~/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.