The 10-minute Rails Pub/Sub

This time we’ll experiment with a quick way to architecture a Rails application to use Pub/Sub instead of model callbacks. What’s wrong with callbacks Rails active record models easily become bloated, that’s where most of the business logic tends to live after all. One of the most common sources of technical debt in Rails apps is callbacks. Models become god-objects with dependencies to other models, mailers and even 3rd party services. »