activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Burton <>
Subject Does pooling sessions/producers across threads improve single process throughput?
Date Wed, 18 Feb 2015 03:21:41 GMT
Is pooling sessions / producers a good strategy to get multi-threaded
throughput for producers?

I have a loop that produces message and needs to complete quickly.  It’s
parallel now but still not as fast as I want.

I was thinking that perhaps using a pool of sessions/producers and then
using one per thread would be faster:

1.  The sessions/producers won’t have to block send()s from other threads,
so I would get more parallelism.

2.  I get more protocol level parallelism and use more cores within AMQ on
the server side since I’m using multiple connections.

Just worried this might be a JMS anti-patter and I also have to spend some
time refactoring code (which is no fun).

Additionally, I introduce a new component which could fail (my pooling



Location: *San Francisco, CA*
… or check out my Google+ profile

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message