[rabbitmq-discuss] conceptual question

Alexis Richardson alexis.richardson at gmail.com
Fri Jul 3 19:47:20 BST 2009


I am fairly sure that....

On Fri, Jul 3, 2009 at 7:38 PM, <Ken.Anderson at sungard.com> wrote:
> Sorry to interject here, but I'm curious as to the answer as well.  I'm assuming the question is related to performance - does the message make on hop between nodes, and then get distributed,

Yes.

> or does the exchange on node X send a separate message to all queues on node Y ?

No.

Also, on a given node, there is only one copy of a given message in
memory, even when that message has been routed to multiple queues on
that node - provided that message is >60 or so bytes in size (iirc).

alexis



>
> -----Original Message-----
> From: rabbitmq-discuss-bounces at lists.rabbitmq.com on behalf of Alexis Richardson
> Sent: Fri 7/3/2009 11:06 AM
> To: Joel Reymont
> Cc: rabbitmq-discuss at lists.rabbitmq.com
> Subject: Re: [rabbitmq-discuss] conceptual question
>
> Joel
>
> I am not sure if this answers your question but the way RabbitMQ works
> is that each consumer gets messages from a queue and each queue is
> bound to one node (to which the consumer is connected).  In a cluster
> the exchanges' routing tables are replicated across all nodes.  So
> when a message arrives a some node in the cluster it will get routed
> to any queues that need to see it, whatever node they are on.  In
> other words each message makes at most one hop between nodes.
>
> You ask:
>
>> Are subscriptions kept per
>> node such that a message going out is first sent to individual nodes
>> and from there to this node's subscriber list?
>
> I think the answer is therefore: YES.
>
> Please let me know if this does not make sense or if I have not
> understood or answered your question.
>
> alexis
>
>
>
> On Wed, Jul 1, 2009 at 3:52 PM, Joel Reymont<joelr1 at gmail.com> wrote:
>> Assume that I have a cluster of RabbitMQ nodes and hundreds of
>> thousands of subscribers connected to them. Are subscriptions kept per
>> node such that a message going out is first sent to individual nodes
>> and from there to this node's subscriber list?
>>
>> My ideal would be for each node to handle delivery to its portion of
>> the subscriber list but I don't know if that's how RabbitMQ works.
>>
>>        Thanks, Joel
>>
>> ---
>> Mac hacker with a performance bent
>> http://www.linkedin.com/in/joelreymont
>>
>>
>> _______________________________________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.rabbitmq.com
>> http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
>
>




More information about the rabbitmq-discuss mailing list