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

后端 未结 4 1090
我寻月下人不归
我寻月下人不归 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条回答
  •  余生分开走
    2021-01-30 21:54

    Short answer is they are the same thing. ActiveJob calls it a Job whereas Sidekiq calls it a Worker. I've decided to keep the terminology different so that people can distinguish the two.

    You can use either one. Note that ActiveJob does not provide access to the full set of Sidekiq options so if you want to customize options for your job you might need to make it a Worker.

提交回复
热议问题