what are the benefits?
There are a number of reasons.
The worker system pre-dates Sidekiq.
Not all workers do Actor-model like tasks. For example, the ScheduleWorker doesn’t process queue items. For these purposes, we could probably switch to a worker process tool like the god gem. Sidekiq could then be another worker process. So, for the purpose of discussion, let’s limit the discussion to just the queue based workers where Sidekiq could make sense.
The queue based work items are not structured like Actor model tasks. There would be a significant rewrite to move everything to that format.
The queue based work items are not thread safe. Sidekiq has a pool of workers running in threads, so all of that would need to be tested and probably would need many concurrency fixes.
The MiqQueue class couples both message routing (roles, zones, etc) and message processing. Sidekiq is just message processing. There is ongoing work at the moment to decouple the MiqQueue, but it is very difficult. Coincidentally, I recently spoke with Mike Perham at the last RailsConf about what it would take to get ManageIQ onto Sidekiq, and this point was the one we discovered together that I hadn’t realized beforehand.
I hope that answers your question!
Hey. Greatly appreciated.
I have learned a lot from the answers.
Thank you so much.