activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MaryAuaun <>
Subject Slow and fast messages
Date Mon, 11 Jul 2011 17:50:21 GMT
I have an application that sends requests through a (persistent) queue, with
multiple machines as consumers that can process the requests.  To send 1000
requests takes 40 seconds, which is very slow.  Is there any way to speed
this up?

Some of the messages require just a little work and get processed in 1/100
seconds.  Others may take a few minutes of processing time.  Is there a way
to get a large pre-fetch and do some kind of "put back" if the consumer
determines it will be spending a few minutes on 1 request?

My producers can tag the messages before submitting them with a "processing
time estimate".  Is there a way to evenly distribute the tasks to different
consumers efficiently?
(When I had a large pre-fetch, one consumer would possibly take 20 messages
that required 2-3 minutes each; it would be better to only get one of those
large messages, or lots of smaller messages)

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

View raw message