Hi Steven, Taylor and Emile, <br><br>thanks a lot, I think you have answered my question, I actually explained to my boss, but he means to create as fewer queues as possble, and dispatch messages on each node, where all the services running on. Maybe I need to write a dispatcher or something, and have to handle the priority or load balance issue by myself, oh my...<br>
<br><div class="gmail_quote">On Mon, Nov 22, 2010 at 5:53 PM, Emile Joubert <span dir="ltr"><<a href="mailto:emile@rabbitmq.com" target="_blank">emile@rabbitmq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Hi Bob,<br>
<div><br>
On 22/11/10 04:42, WANG Chong (Bob) wrote:<br>
> Hi all,<br>
><br>
> I am wondering is there anybody who can answer my question?<br>
><br>
> I am using RabbitMQ for the messaging broker in my application, now the<br>
> scenario is a same service may be replicated to many nodes, they need to<br>
> receive the same message in some cases. My proposal is to create many<br>
> queues listening a fan-out exchange, but my boss doubt that this will<br>
> cost too many resources on the messaging server, so he insists not to<br>
> create new queues but same services listening on the same queue, is this<br>
> feasible? Any body who can help?<br>
<br>
</div>The normal pattern is to have many consumers listen to a single queue in<br>
cases where the message needs to be picked up by a single consumer. If<br>
the same message needs to be delivered to many consumers then you should<br>
create a queue and a binding for each consumer.<br>
<br>
Creating many queues do consume more resources, but it is possible for<br>
commodity hardware to support tens of thousands of queues. If the queues<br>
exceed the resource budget of your server then clustering can help you<br>
to spread the load.<br>
<br>
Regards<br>
<font color="#888888"><br>
Emile<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Yours Sincerely<br>WANG Chong (Bob)<br>Mobile: +86 (0) 1370-651-7250<br>MSN: <a href="mailto:ewangchong@msn.com" target="_blank">ewangchong@msn.com</a><br>