[rabbitmq-discuss] Python & RabbitMQ — Communicate Between Parent & Children?

Jason J. W. Williams jasonjwwilliams at gmail.com
Fri Jul 15 20:11:33 BST 2011


Are the workers' published message replies to the parent's messages or
independent? If the latter, it sounds like a fanout exchange with a
private queue per work would work for the parent->child communication,
and then create a private anonymous queue for the parent and set the
"reply-to" header on the parent's messages to the name of it's private
queue. The children processes can then publish directly to that queue.

-J

On Fri, Jul 15, 2011 at 12:24 PM, Shalom Rav
<csharpplusproject at gmail.com> wrote:
> I'd like to write a python app that uses rabbitMQ to do the following:
>
> There will be ONE *parent*, and TEN workers.
>
> Every 2[sec], the *parent* sends a message that must be consumed by
> *all workers*.
>
> Every 5[sec], each one of the *workers* should send a message directly
> to the *parent*.
>
>
> Both routes ( every 2[sec], message from *parent* to *all workers*;
> every 5[sec], message from each *worker* straight to the parent ) must
> run concurrently, at the same time.
>
>
> How do I go about modeling it using rabbitMQ & python?
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>


More information about the rabbitmq-discuss mailing list