← Back to Upcase

Wisper gem

(Andy Waite) #1

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.

(Aaron Mc Adam) #2

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

(Andy Waite) #3

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

(Aaron Mc Adam) #4

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