Jump to content

The ultimate community for Ruby on Rails developers.


How to get started with Redis in Ruby on Rails to create multiple queues?

  • Please log in to reply
3 replies to this topic

#1 jim_winks



  • Members
  • 1 posts

Posted 27 July 2014 - 05:56 PM

I am new to redis and have not been able to find any guides to create what I have in my head. I want to create multiple queues each doing a simple process.

Queue one: Generate a new, random number between 1-100 every 10 seconds. Queue two: Keep a running total of the sum of Queue one. Queue three: Generate a new, random letter from the English alphabet once every 30 seconds.

If anyone knows a simple script that could help me achieve this little problem it would be a great help.



#2 Jamie



  • Moderators
  • 142 posts
  • LocationNewcastle, UK

Posted 28 July 2014 - 09:10 AM



Welcome to RailsForum.


I'd suggest you take a look at this screencast by Ryan Bates to get you started.


I use Foreman which will happily work your Procfile to handle queues, redis and web servers.


Give the tutorial a go and let us know how you get on!




Rails developer based in Newcastle, UK.

#3 Sekhar



  • Members
  • 2 posts

Posted 29 July 2014 - 06:42 AM

hello jamie,


i am new to rails can you tell me what exactly Redis in ruby on rails 

#4 preeti



  • Members
  • 2 posts

Posted 30 July 2014 - 08:04 AM

Hi Jamie, Redis is an extremely fast , open source, atomic advanced key-value store . It allows the storage of strings, sets, sorted sets, liists and hashes. In order to achieve its outstanding performance, Redis works with an in-memory dataset.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users