29 Sep '16, 6pm

“What is Pub-Sub? Rails Publish-Subscribe Pattern Tutorial | Toptal” https://t.co/iRVnIyquhG

“What is Pub-Sub? Rails Publish-Subscribe Pattern Tutorial | Toptal” https://t.co/iRVnIyquhG

hello Andery, I've read the article you posted, and the problems you described seems to be related to the underlying implementation you wrote. and here is my recommendations to solve your problems, if you want threaded execution you should have a look at https://github.com/krisleech/wisper-celluloid, https://github.com/krisleech/wisper-activerecord or https://github.com/krisleech/wisper-sidekiq all of these supports threaded background execution AFAIK, and again for the second problem any of the previous gems will help solving this, wisper doesn't require you to add the listener immediately after the publisher, it requires it to be defined in the initializer file (config/initializers/wisper.rb) so I've never faced these problems using Wisper (or any of the gems the depends on it ) again I'm not the author of wisper and therefore I don't know much of the underlying implemen...

Full article: https://www.toptal.com/ruby-on-rails/the-publish-subscrib...

Tweets

How to Make your Next Rails Upgrade Easier

rubyflow.com 01 Oct '16, 12am

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

Interactors in Rails

rubyflow.com 26 Sep '16, 5am

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...