iron-io/iron_mq_ruby

does iron_mq do pubsub?

Closed this issue · 1 comments

Can you do a publisher/subscriber model with iron_mq or do workers need to keep polling?

To give you more background on what I'm attempting. I have two processes on heroku. One is a normal web server, the other is an eventmachine process maintaining connections with a bunch of other hosts. Occasionally my web server needs to pass some task to the eventmachine process to tell it to push out some data to the hosts it's connected with.

So I guess my question is whether it makes sense to have my eventmachine process continually poll iron_mq in the reactor loop? Or I can I have iron_mq push to my eventmachine process when it has something for it?

Thanks!

Hi Brian,

We don't currently support any push functionality, but we will have
something very soon for this. Your best bet for now is to poll.
On Mar 16, 2012 12:46 AM, "Brian Armstrong" <
reply@reply.github.com>
wrote:

Can you do a publisher/subscriber model with iron_mq or do workers need to
keep polling?

To give you more background on what I'm attempting. I have two processes
on heroku. One is a normal web server, the other is an eventmachine
process maintaining connections with a bunch of other hosts. Occasionally
my web server needs to pass some task to the eventmachine process to tell
it to push out some data to the hosts it's connected with.

So I guess my question is whether it makes sense to have my eventmachine
process continually poll iron_mq in the reactor loop? Or I can I have
iron_mq push to my eventmachine process when it has something for it?

Thanks!


Reply to this email directly or view it on GitHub:
#12