[rabbitmq-discuss] Java Client Changes
mabrek
mabrek at gmail.com
Fri Oct 15 10:03:21 BST 2010
On 10/12/2010 05:39 PM, Rob Harrop wrote:
> Summary of changes:
>
> * Dispatch to consumers now happens on a separate thread from the Connection thread
Have you considered switching to NIO with one io-loop thread per connection/several connections?
Something like Netty or Apache Mina.
> * Each Channel has its own dispatch thread
It can result in creating too many threads.
> * Channels are safe for use from multiple threads (not suitable for heavy concurrent usage though)
Consider web appication scenario. It sends a message per incoming request. Requests are served from several threads (up to 100) with a heavy concurrency (hundreds requests per second). So application needs either thread-safe non-blocking publisher that is suitable for heavy concurrency or very light-weight non-thread-safe publisher that can be created per incoming request and deleted after use.
Regards,
Anton Lebedevich.
More information about the rabbitmq-discuss
mailing list