Live data from Hacker News

Resque with Redis To Go

blog.redistogo.com

1–10 of 20 posts

Re: Resque with Redis To Go

#5

Use the best tool for the job. For queueing, that's probably 0mq or ActiveMQ or RabbitMQ, depending on your needs.

These are primarily messaging systems. I've considered using them before. Nothing, however, has come close to letting me do introspection like Resque does, and the best part is that I don't need to do any work to get it.

Re: Resque with Redis To Go

#6
Looks pretty awesome. I'd love to use it on an upcoming project.

2 questions:

1. Do jobs (in app/jobs/whatever.rb) have full access to your Rails models (so you can pass it an ID and it can do whatever)?

2. How does the rake task/worker best work in a production environment (other than Heroku)? Use monit to keep the worker(s) up?

Thanks

Re: Resque with Redis To Go

#7
Great stuff!

Also, for the extremely anal, uri-redis is aware of the database number:

    require 'uri-redis'
    conf = URI.parse 'redis://localhost:6379/1'
    conf.host      # => localhost
    conf.port      # => 6379
    conf.db        # => 1

Re: Resque with Redis To Go

#8
post #6

Looks pretty awesome. I'd love to use it on an upcoming project. 2 questions: 1. Do jobs (in app/jobs/whatever.rb) have full access to your Rails models (so you can pass it an ID and it can do whatever)? 2. How does the rake task/worker best work in a production environment (other than Heroku)? Use monit to keep the worker(s) up? Thanks

1. Yes

2. Just use the "rake resque:work" task and I recommend using something like upstart that works awesome, but I have also done it with monit and both work great

Re: Resque with Redis To Go

#9

Use the best tool for the job. For queueing, that's probably 0mq or ActiveMQ or RabbitMQ, depending on your needs.

These are primarily messaging systems. I've considered using them before. Nothing, however, has come close to letting me do introspection like Resque does, and the best part is that I don't need to do any work to get it.

They are message queues. What makes introspection a critical requirement?

Re: Resque with Redis To Go

#10

Earlier quoted context omitted.

These are primarily messaging systems. I've considered using them before. Nothing, however, has come close to letting me do introspection like Resque does, and the best part is that I don't need to do any work to get it.

They are message queues. What makes introspection a critical requirement?

For me it was because I was unable to access the log files if a job failed since I was on Heroku. Also it gives me a general idea of how the system behaves; in one second I can tell if the system is normal. I can tell if I need to bump some workers up for a certain queue. Basically it saves me from creating my own 'dashboard'.
Post reply on HN