[rabbitmq-discuss] Thread per channel and partitioning by channel (java client)

Jonathan jhalterman at gmail.com
Fri Feb 15 20:34:28 GMT 2013


I read that each channel in the Java client gets its own thread. What is 
this thread used for? The reason I ask is if connections have their own 
thread and consumers are allocated from a thread pool, what could the 
channel's thread be used for aside from publishing?

Also, what are some strategies for determining how to partition messages by 
channel? For example, if I'm routing messages for a set of users in my 
application, it's simple to create one channel per user. But if I have 
hundreds of users being handled by my client, and each channel has its own 
thread, I obviously don't want hundreds of threads. Any strategies for this?

Thanks,
Jonathan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130215/7d7768cb/attachment.htm>


More information about the rabbitmq-discuss mailing list