activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <>
Subject Re: asyncSend for producers in persistent mode
Date Wed, 12 Jan 2011 08:04:36 GMT

async send is that much faster for the exact reason it doesn't wait
for the response from the broker before sending the next message. You
can still get exceptions, by using ExceptionListener, but you'll lose
guarantees that message is stored in the broker once your send()
method return.

Dejan Bosanac
FuseSource - The experts in open source integration and messaging.
ActiveMQ in Action -
Blog -

On Tue, Jan 11, 2011 at 8:51 PM, Anirudha Khanna <> wrote:
> Hi,
> When sending messages using persistent mode and useAsyncSend=true, I noticed that the
producer throughput is roughly 10x more as compared to when useAsyncSend=false. What I am
trying to understand is whether it is safe to use this option if we want to guarantee that
all the messages that a producer sends will be received by the broker. (using TCP as transport)
Are there any caveats to using this option? Will the broker be able to notify the client say
if it was unable to persist the message(s) to the message store?
> Thanks,
> Anirudha

View raw message