Wisper gem

Just wondering if anyone else is making use of the Wisper gem for a Rails app? https://github.com/krisleech/wisper

It’s a library for the publish-subscribe pattern. In some ways it’s a replacement for Rails Observers, but with more fine-grained control.

Obie Fernandez (author of The Rails Way) spoke about it recently: https://www.youtube.com/watch?v=q0LtzYTrmMY

It seems like a nice approach for keeping models free of the tasks which often end up in after_create/after_save callbacks.

1 Like

It’s definitely on my list of things to try next time I need pubsub. It would be a nice way to implement hexagonal rails apps too I think

I wonder if it makes sense here? https://github.com/thoughtbot/learn/search?q=after_save

I’d definitely say so! Though I wonder what a Wisper implementation might look like.