Sidekiq Rails 4.2 Use Active Job or Worker? What's the difference

后端 未结 4 1131
我寻月下人不归
我寻月下人不归 2021-01-30 21:31

This is my first processing jobs asynchronously I am implementing Sidekiq for background processing in my app. I will use it for reminder emails and in-app notifications. I am

4条回答
  •  萌比男神i
    2021-01-30 21:39

    I would recommend sticking with native sidekiq for more features. I also ran into some weird serialization issues with ActiveJob once in a while. ActiveJob, while pursuing a noble goal of enforcing unified API, limits many implementations precisely for this reason and offers a little benefit for now IMO. Personally, I'm more than eager to pay the possible price of rewriting the code some time in a future(which may never happen, you don't swap critical parts of your application just for fun - like activerecord vs mongodb) if I decide to swap implementation for richer feature-set.

提交回复
热议问题