TCP Socket communication between processes on Heroku worker dyno

前端 未结 5 2034
难免孤独
难免孤独 2020-12-16 17:32

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 runn

5条回答
  •  清酒与你
    2020-12-16 18:12

    Reading your question, you've answered your own question, you cannot connect to localhost 12345.

    This way of setting up your processes is a strange one as your running two processes within one Heroku dyno which removes a lot of the benefits of Heroku, i.e independant process scaling, isolation and clean depenedency declaration and isolation.

    I would strongly recommend running this as two seperate processes that interact via a third party backing service.

提交回复
热议问题