TCP Socket communication between processes on Heroku worker dyno
I'd like to know how to communicate between processes on a Heroku worker dyno. We want a Resque worker to read off a queue and send the data to another process running on the same dyno. The "other process" is an off-the-shelf piece of software that usually uses TCP sockets (port xyz) to listen for commands. It is set up to run as a background process before the Resque worker starts. However, when we try to connect locally to that TCP socket, we get nowhere. Our Rake task for setting up the queue does this: task "resque:setup" do # First launch our listener process in the background `./some