Quantcast
Channel: Active questions tagged redis+ruby-on-rails - Stack Overflow
Viewing all articles
Browse latest Browse all 873

What is the best way to implement subscription to a Redis pub sub in Rails?

$
0
0

The scenario I am working with is that I have a node.js engine which is receiving web-hook and pubsubhubhub queries from various services. It needs to send the incoming data to Rails for processing and storage.

I'm debating whether to use HTTP callbacks for this on the Rails side, or possibly using Redis Pubsub.

The question is: how do you get Rails to subscribe and listen to Redis? In the examples for Juggernaut, they have it implemented as a loop, but if I put a subscribe loop in a library and initialize it on application load, it blocks the loading.


Viewing all articles
Browse latest Browse all 873

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>