DEV Community

Cover image for Publish/Subscribe with Sidekiq

Publish/Subscribe with Sidekiq

štef on February 21, 2024

Introduction Our Rails application is an old monolith that relies heavily on after/before callbacks to trigger code that has side effect...
Collapse
 
rafaeldev profile image
Rafael Gomes

Thanks for your post!

Can you tell us about deserialization?
Sidekiq 7+ prefers hash object as json to handle it and in your example, you are passing self in item named parameter. Are you handle object in publish or in other part?

Collapse
 
just-the-v profile image
Just The V • Edited

Hi! Thanks for sharing this. We use whisper on a daily basis and it really feels overwhelming. Your approach looks very simple and easy to use. Have you encountered any issues ?

Collapse
 
d4be4st profile image
štef Productive

On the execution side, no. We have been running this for the last 6 months and haven't touched that code since :)

The problem we encountered is adoption. People just like after_commit hooks better for some reason...