← Back to Upcase

Heroku Interprocess Communication


(Charlieanna) #1

This is my Procfile

web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
bot: bundle exec ruby app.rb -D

bot is something that remains connected to an xmpp server as long as the user is signed in.

Now how can I communicate between the web app and this file? I have heard about using redis or tcp sockets for this. For example I want to send the credentials to this file when user tries to log in.

Should I be using eventmachine by opening a port and then have the communication between the two?

Am I going in the right direction?