activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From boday <>
Subject Re: starvation with JMSPriority queues
Date Fri, 31 Aug 2012 15:38:46 GMT
thanks Gary...that makes sense...I just thought I'd check to see if there was
some built-in mechanism to handle this case...indefinite starvation is a
common concern for this pattern, but tricky to implement as you stated.  

for now, I suppose I can periodically check the queue for old messages and
increase their priority manually...I can't think of another elegant way to
handle this and maintain single-threaded consumption...

gtully wrote
> that is really the point of a priority queue, to starve out low
> priority messages in favor of higher priority.
> There is currently no way to tell amq; "every now and again let some
> lower priority messages through". It begs lots of questions and it
> would be quite complex to achieve :-)
> Priority support can be enabled on a per destination basis, so it need
> not be respected if you don't want it.
> On 31 August 2012 00:41, boday &lt;ben.oday@&gt; wrote:
>> lets say I have a single (slow) consumer from a priority queue and I
>> produce
>> mostly high priority messages to it...will low priority messages ever get
>> processed (based on duration in the queue, etc)?
>> I know there are workarounds (manually promoting, resequencers, using
>> multiple queues, etc), but am curios about the default behavior and any
>> AMQ
>> settings to get around starving low priority messages indefinitely.
>> --
>> View this message in context:
>> Sent from the ActiveMQ - User mailing list archive at
> -- 

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message