[rabbitmq-discuss] (java) Is Connection pooling required ?

Ben Hood 0x6e6562 at gmail.com
Sat Nov 8 13:48:56 GMT 2008


Gavin,

On Sat, Nov 8, 2008 at 8:21 AM, Gavin Bong <vinorasmus at gmail.com> wrote:
> Hi,
>
> Scenario:
>
> We have to support many concurrent client producer threads (in the
> order of 30 threads) connecting to the same { broker/virtualhost/realm
> }.
>
> Concerns:
>
> Should I attempt to pool Connections via an object pooling framework
> (e.g. commons-pool) ? Has anyone attempted this and if yes, would you
> please share your experiences/gotchas ?

For a general treatise, you could read this article:
http://hopper.squarespace.com/blog/2008/10/6/multithreading-amqp-clients.html

As the article points out you should be sharing the connection and
binding a channel to each thread.

HTH,

Ben




More information about the rabbitmq-discuss mailing list