Hi Matwey,<br><br>That&#39;s right. Publishers can sometimes learn about subscribers being missing (see the &quot;immediate&quot; and &quot;mandatory&quot; flags to Basic.Publish), but subscribers can in general not learn whether any matching publisher exists at any given time.<br>
<br>One workaround might be to use something like my experimental presence-exchange: <br><ul><li><a href="https://github.com/tonyg/presence-exchange">https://github.com/tonyg/presence-exchange</a><br></li><li><a href="https://groups.google.com/forum/#!msg/rabbitmq-discuss/8BNgJ794840/VuNx-QiquKQJ">https://groups.google.com/forum/#!msg/rabbitmq-discuss/8BNgJ794840/VuNx-QiquKQJ</a></li>
</ul><p>Cheers,<br>  Tony</p><p><br></p><br><div class="gmail_quote">On 30 March 2012 11:20, Matwey V.  Kornilov <span dir="ltr">&lt;<a href="mailto:matwey.kornilov@gmail.com">matwey.kornilov@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Hi,<br>
<br>
<br>
I can&#39;t understand some amqp concepts because they are new to me. If I use<br>
pub/sub pattern (just as described in tutorial), there is exchange and<br>
consumers&#39; queues bound with it. Do I understand right that there is no way<br>
for consumers to know whether there is client who writes to this exchange?<br>
Moreover, there is no way to know if the publisher is dead or just there is<br>
nothing to publish?<br>
<br>
What is the right way to implement subscribers&#39; behaviour such that they<br>
move to some &#39;autonomous&#39; state in case of publisher death or disconnection?<br>
<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Tony Garnock-Jones<br><a href="mailto:tonygarnockjones@gmail.com" target="_blank">tonygarnockjones@gmail.com</a><br><a href="http://homepages.kcbbs.gen.nz/tonyg/" target="_blank">http://homepages.kcbbs.gen.nz/tonyg/</a><br>