Best Practices: Should the worker/consumer run in a separated instance of the producer/application?

35 views
Skip to first unread message

Mathieu Tan

unread,
Feb 10, 2014, 8:48:21 AM2/10/14
to queue_...@googlegroups.com

Hi there,


Thanks for this awesome gem, I am trying to implements queue_classic and I would like to have some advice on design best practices.

I have a sinatra application which will feed the queue. Everythings is working fine.

My question is where should I run the worker? Knowing that I have a rake task which will have the worker looping indefinitely to retrieve items of the queue.

Should it be on the same server? Or should I have a dedicated server running this rake task. If the worker is in a separated instance of the producer can I assume that the queue will notify my worker properly?


 Thanks in advance and keep up the good work!


Mathieu

Reply all
Reply to author
Forward
0 new messages