[rabbitmq-discuss] Python & RabbitMQ — Communicate Between Parent & Children?
csharpplusproject at gmail.com
csharpplusproject at gmail.com
Fri Jul 15 22:51:00 BST 2011
Jason,
Thank you for your help.
The workers' messages to the parent are independent of the parent's message to the workers. These are two separate things that work in parallel.
Note that the parents sends *the same message* to all workers, while (separately) each one of the workers sends *its own unique message* straight to the parent.
I am brand new to rabbitMQ -- is it possible to provide some further info / code snippets that would allow me to get a better sense of things?
Thanks,
Shalom.
------Original Message------
From: Jason J. W. Williams
To: Shalom Rav
Cc: rabbitmq-discuss at lists.rabbitmq.com
Sent: Jul 15, 2011 15:11
Subject: Re: [rabbitmq-discuss] Python & RabbitMQ — Communicate Between Parent & Children?
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
>
Sent via BlackBerry from T-Mobile
More information about the rabbitmq-discuss
mailing list