RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

The Modular Monolith in Rails: Engines, Packwerk & Boundaries

https://davidslv.uk/modular-monolith-rails/

A current (Rails 8, Zeitwerk) walk-through of enforcing boundaries inside a Rails monolith before reaching for microservices. It compares Engines vs Packwerk vs extracted gems vs services in a single matrix, covers what Zeitwerk does and doesn’t give you, sets out a safe incremental migration loop, and is honest about when not to bother. First-party runnable examples throughout. Written from the experience of decomposing a large production monolith into engines — feedback from people running this in anger is welcome. Disclosure: I wrote this and the free companion book it links to.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in