PUB/SUB in Rails using ActionCable & Sidekiq

Viewed 203

In my controller#action, I would like to perform_async 2-3 jobs & subscribe to those jobs(using ActionCable). And once those jobs were completed, then my controller#action will return the proper response.

In each job will do publish once completed using ActionCable.

I have seen the Sidekiq PRO > Batch which might handle this but I would like to know if this can be achieved with the process or flow I have sited.

Reason doing this is to avoid THREADING, but need those jobs to run almost in parallel.

Thanks!

0 Answers
Related