You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by David Hawthorne <dh...@3crowd.com> on 2010/07/30 01:13:31 UTC
multiple readers from same queue for performance purposes
I'm looking at attempting to speed up the draining of a queue with multiple readers. Is this even possible? I wouldn't want each client to get the same message, I'd want them to simply get the next message in the queue.
Thanks!
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org
Re: multiple readers from same queue for performance purposes
Posted by Joshua Kramer <jo...@globalherald.net>.
David,
My article demonstrates how to subscribe many local queues to the same
server queue. When you do this, messages placed in the server queue are
read by the local queues in round-robin fashion. So, if you have ten
servers that you'd like to use for a particular operation, you'd declare
one server queue for that operation, and subscribe ten local queues -
each server having one local queue - to the server queue. In this way,
when the server queue fills up it will distribute the messages to the
servers in a round-robin fashion.
--Josh
On 07/29/2010 10:00 PM, David Hawthorne wrote:
> Thanks for that, but I'm not sure how your article relates to this topic.
>
> On Jul 29, 2010, at 6:13 PM, Joshua Kramer wrote:
>
>
>> Hello David,
>>
>> Check out my article in Linux Journal for an example of how this is done:
>>
>> http://www.linuxjournal.com/magazine/advanced-message-queuing-protocol-amqp?page=0,3
>>
>> Let me know what further questions you have!
>>
>> Cheers,
>> -JK
>>
>> On Thu, 29 Jul 2010, David Hawthorne wrote:
>>
>>
>>> Date: Thu, 29 Jul 2010 16:13:31 -0700
>>> From: David Hawthorne<dh...@3crowd.com>
>>> Reply-To: users@qpid.apache.org
>>> To: users@qpid.apache.org
>>> Subject: multiple readers from same queue for performance purposes
>>> I'm looking at attempting to speed up the draining of a queue with multiple readers. Is this even possible? I wouldn't want each client to get the same message, I'd want them to simply get the next message in the queue.
>>>
>>> Thanks!
>>> ---------------------------------------------------------------------
>>> Apache Qpid - AMQP Messaging Implementation
>>> Project: http://qpid.apache.org
>>> Use/Interact: mailto:users-subscribe@qpid.apache.org
>>>
>>>
>>>
>> --
>>
>> -----
>> http://www.globalherald.net/jb01
>> GlobalHerald.NET, the Smarter Social Network! (tm)
>>
>> ---------------------------------------------------------------------
>> Apache Qpid - AMQP Messaging Implementation
>> Project: http://qpid.apache.org
>> Use/Interact: mailto:users-subscribe@qpid.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project: http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org
Re: multiple readers from same queue for performance purposes
Posted by David Hawthorne <dh...@3crowd.com>.
Thanks for that, but I'm not sure how your article relates to this topic.
On Jul 29, 2010, at 6:13 PM, Joshua Kramer wrote:
>
> Hello David,
>
> Check out my article in Linux Journal for an example of how this is done:
>
> http://www.linuxjournal.com/magazine/advanced-message-queuing-protocol-amqp?page=0,3
>
> Let me know what further questions you have!
>
> Cheers,
> -JK
>
> On Thu, 29 Jul 2010, David Hawthorne wrote:
>
>> Date: Thu, 29 Jul 2010 16:13:31 -0700
>> From: David Hawthorne <dh...@3crowd.com>
>> Reply-To: users@qpid.apache.org
>> To: users@qpid.apache.org
>> Subject: multiple readers from same queue for performance purposes
>> I'm looking at attempting to speed up the draining of a queue with multiple readers. Is this even possible? I wouldn't want each client to get the same message, I'd want them to simply get the next message in the queue.
>>
>> Thanks!
>> ---------------------------------------------------------------------
>> Apache Qpid - AMQP Messaging Implementation
>> Project: http://qpid.apache.org
>> Use/Interact: mailto:users-subscribe@qpid.apache.org
>>
>>
>
> --
>
> -----
> http://www.globalherald.net/jb01
> GlobalHerald.NET, the Smarter Social Network! (tm)
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project: http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org
Re: multiple readers from same queue for performance purposes
Posted by Joshua Kramer <jo...@globalherald.net>.
Hello David,
Check out my article in Linux Journal for an example of how this is done:
http://www.linuxjournal.com/magazine/advanced-message-queuing-protocol-amqp?page=0,3
Let me know what further questions you have!
Cheers,
-JK
On Thu, 29 Jul 2010, David Hawthorne wrote:
> Date: Thu, 29 Jul 2010 16:13:31 -0700
> From: David Hawthorne <dh...@3crowd.com>
> Reply-To: users@qpid.apache.org
> To: users@qpid.apache.org
> Subject: multiple readers from same queue for performance purposes
>
> I'm looking at attempting to speed up the draining of a queue with multiple readers. Is this even possible? I wouldn't want each client to get the same message, I'd want them to simply get the next message in the queue.
>
> Thanks!
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project: http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>
--
-----
http://www.globalherald.net/jb01
GlobalHerald.NET, the Smarter Social Network! (tm)
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org
Re: multiple readers from same queue for performance purposes
Posted by Gordon Sim <gs...@redhat.com>.
On 07/30/2010 12:13 AM, David Hawthorne wrote:
> I'm looking at attempting to speed up the draining of a queue with multiple readers. Is this even possible?
Yes.
> I wouldn't want each client to get the same message, I'd want them to simply get the next message in the queue.
That is the default behaviour for multiple subscribers on the same queue.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org