<div dir="ltr"><div class="gmail_quote"><br><div dir="ltr">Hi<br>I have a the same question!<br>and for the answer of &quot;<i>why do you want the producer to know if there is a consumer around?</i>&quot; I should say: I have about 50 producer and 10 consumer. each producer producing about 500,000 message per day:) In a day it become about 25,000,000 message! I don&#39;t want my rabbitMQ server fail because of absence of message consumer. I want to notify my producers to wait and save message in db until consumers are up. so because there are many producers I can&#39;t use a passive declare like discussed in <a href="http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/2012-June/020553.html">here</a>.<br>


Did I could <span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:-webkit-auto;font-style:normal;display:inline!important;font-weight:normal;float:none;line-height:normal;text-transform:none;font-size:13px;white-space:nowrap;font-family:arial,sans-serif;word-spacing:0px">clarify</span> my problem? <br>

Is here any controller like <a href="http://activemq.apache.org/producer-flow-control.html">Producer Flow Control</a>  available? <br>
<br>Message: 6<br>
Date: Mon, 11 Jun 2012 11:10:47 +0100<br>
From: Simon MacMullen &lt;<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>&gt;<br>
Subject: Re: [rabbitmq-discuss] there is a Consumer connected?<br>
To: Yurisleidy Hern?ndez Moya &lt;<a href="mailto:ymoya@uci.cu" target="_blank">ymoya@uci.cu</a>&gt;<br>
Cc: <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a><br>
Message-ID: &lt;<a href="mailto:4FD5C427.4010402@rabbitmq.com" target="_blank">4FD5C427.4010402@rabbitmq.com</a><div>&gt;<br>
Content-Type: text/plain; charset=UTF-8; format=flowed<br>
<br>
On 10/06/12 21:38, Yurisleidy Hern?ndez Moya wrote:<br>
&gt; The Producer can know if there is a Consumer connected to the queue<br>
&gt; before sending the message?<br>
<br>
To answer your question literally: yes, use the mgmt HTTP API.<br>
<br>
To answer your question slightly less literally, the point of a<br>
messaging system is to let producers and consumers become decoupled -<br>
why do you want the producer to know if there is a consumer around?<br>
<br>
Cheers, Simon<br>
<br>
--<br>
Simon MacMullen<br>
RabbitMQ, VMware<span class="HOEnZb"><font color="#888888"><br>
</font></span></div><span class="HOEnZb"><font color="#888888"><br clear="all"><br>-- <br><div dir="ltr"><font style="color:rgb(51,0,153);font-family:tahoma,sans-serif" size="2"><span><span><span><br><span style="color:rgb(0,0,0)">Sincerely </span><br style="color:rgb(0,0,0)">


<span style="color:rgb(0,0,0)">ML</span></span></span></span></font><br></div><br>
</font></span></div>
</div><br><br clear="all"><br>-- <br><div dir="ltr"><font style="color:rgb(51,0,153);font-family:tahoma,sans-serif" size="2"><span><span><span><br><span style="color:rgb(0,0,0)">Sincerely </span><br style="color:rgb(0,0,0)">

<span style="color:rgb(0,0,0)">ML</span></span></span></span></font><br></div><br>
</div>