I’ve created eventmachine app that perform some background job. I wonder what is the best way to send data from rails app to eventmachine app.
Currently Im thinking of using redis for this. Perhaps redis pub/sub functionality.
Is there any gem that can be used for this task?
Without knowing more about your needs I cannot give a precise answer but here are some leads:
If you already have a redis server you can use its subscribe/publish feature or another thing I did which is to have a process do a brpop or blpop (the process will block on the call and take anything put in the queue right away) on a list and have your rails process push something to the list, it works pretty well.