I have two servers: web server (front-end) and analytic (backend) server. I need to pass a job from front-end server to back-end server through Sidekiq.
My hack is:
- Install Sidekiq in both web server and backend server. I now have front-end Sidekiq and back-end Sidekiq.
- Configure front-end Sidekiq so that it points to Redis server of the back-end Sidekiq. In other words, two Sidekiq shares the same Redis database server.
Now, I need to enqueue a job from front-end Sidekiq, then execute a code from back-end Sidekiq.
How I should go about doing it?