I use redis list as a queue, i also have a consumer program take the stuff from redis. I want to have the consumer in ruby take stuff from redis as long as redis is not empty. Do you know how could i achieve this? Right now, I manually run the consumer program.
Asked
Active
Viewed 34 times
0
-
Have you had a look at the [`BRPOP`](http://redis.io/commands/BRPOP) command? Jam that into a loop. – tadman Jun 09 '15 at 21:33
-
Why are you trying to use Redis as a message broker? Why not use a real message broker? – sethvargo Jun 09 '15 at 21:56