Search code examples
rubysidekiq

Can multiple sidekiq instances process the same queue


I'm not familiar with the internals of Sidekiq and am wondering if it's okay to launch several Sidekiq instances with the same configuration (processing the same queues).

Is it possible that 2 or more Sidekiq instances will process the same message from a queue?

UPDATE:
I need to know if there is a possible conflict, when running Sidekiq on more than 1 machine


Solution

  • Yes, sidekiq can absolutely run many processes against the same queue. Redis will just give the message to a random process.