[rabbitmq-discuss] Best Practices using Connection and Channels

Simone simone.busoli at gmail.com
Mon May 9 08:51:07 BST 2011


Hi Marcus, you can find some info in the Java API guide<http://www.rabbitmq.com/api-guide.html#channel-threads>. 
I am going to use the .NET API soon but I didn't have time to look into the 
code to tell you what pattern is good, hopefully someone else can.
BTW I can tell you what I think would be a good way to use it. If you're 
familiar with NHibernate you know about session factory and session. I think 
that in the same way I would like to design my application so that there is 
a single connection and each thread creates its own channel, thus making the 
connection the mirror of NH session factory and channel the mirror of NH 
session.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110509/ef3afdd0/attachment.htm>


More information about the rabbitmq-discuss mailing list