nimblehq / rails-templates

Our optimized Rails templates used in our projects
https://nimblehq.co
MIT License
103 stars 25 forks source link

Compare Sidekiq and GoodJob and define if we should change the standard #515

Open malparty opened 5 months ago

malparty commented 5 months ago

Why

Sidekiq now has viable & Prod-ready alternatives. GoodJob is one of them.

Why would we want to replace Sideqik? 👀

First, it requires you to have Redis, an additional infrastructure component to maintain (or pay for). Second, using Redis for job storage is prone to transactional integrity errors (we talk about this problem and the solution below, so continue reading).


One additional benefit of using GoodJob or SolidQueue is built-in support for recurrent jobs (cron-like). For non-Enterpise Sidekiq, you must use some third-party tool for that.


Source: Gemfile of dream

We might want to create a Discussion or an Engineering Initiative for this topic 🤔 This issue is just to prioritize among other work and ensure we will change the template after this discussion or initiative.

Who Benefits?

Future Projects with cheaper and easier-to-maintain infra.

malparty commented 4 months ago

Status progress:

sanG-github commented 3 months ago

The comparison can be found on the Notion page, but haven't completed yet.

sanG-github commented 1 month ago

The documentation comparing GoodJob and SideKiq has been completed. Next time, I will try presenting it in the Web Chapter.

Btw, we don't need to tackle this integration, as SolidQueue (which has been inspired by GoodJob) will become the default background job management in Rails 8. 🚀

suho commented 1 month ago

@malparty @sanG-github just about to raise SolidQueue after watching Rails World 2024 Opening Keynote, good things coming in Rails 8.

I'm inspired by that opening keynote and will plan my work to join rails templates as a contributor 🙈

malparty commented 3 weeks ago

@suho @sanG-github we might want to follow up this thread: https://www.reddit.com/r/rails/comments/1g4ua4p/sidekiq_vs_goodjob_vs_solid_queue/

Some concerns for SolidQueue at the moment:

Getting more people to use it first (and raise issues) might be needed before we jump to it on client projects ;-) But it's a very good news still 🚀

suho commented 3 weeks ago

@malparty We might have an initiative to set up and compare tools (sidekiq, goodjob, solidqueue), then officially use it for rails templates + mention it on Compass