Thanks, Jason. �<div><br></div><div>I bring this up because of this comment --�<a href="http://tonyg.github.com/pika/connecting.html#adapters-blocking-connection-blockingconnection">http://tonyg.github.com/pika/connecting.html#adapters-blocking-connection-blockingconnection</a></div>
<div><br></div><div>&quot;<span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; "><b>Warning</b> BlockingConnection is provided for legacy and learning purposes only and it is not recommended that you use it for a production application.&quot;</span></div>
<div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; "><br></span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; ">The latest git documentation also still has this warning (<a href="https://github.com/pika/pika/blob/master/pika/adapters/base_connection.py">https://github.com/pika/pika/blob/master/pika/adapters/base_connection.py</a>)</span></div>
<div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; "><br></span></div><div><span class="Apple-style-span" style="font-family: Helvetica; font-size: 12px; ">&quot;</span><span class="Apple-style-span" style="color: rgb(221, 17, 68); font-family: &#39;Bitstream Vera Sans Mono&#39;, Courier, monospace; font-size: 12px; line-height: 16px; white-space: pre; ">adapters.blocking_connection.BlockingConnection: Enables blocking,</span></div>
<meta charset="utf-8"><span class="Apple-style-span" style="font-family: helvetica, arial, freesans, clean, sans-serif; font-size: 11px; line-height: 14px; "><pre style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 12px/normal &#39;Bitstream Vera Sans Mono&#39;, Courier, monospace; font-family: &#39;Bitstream Vera Sans Mono&#39;, Courier, monospace; font-size: 12px; line-height: 1.4; ">
<div class="line" id="LC18" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 1em; "><span class="sd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(221, 17, 68); ">  synchronous operation on top of library for simple uses. This is not</span></div>
<div class="line" id="LC19" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 1em; "><span class="sd" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; color: rgb(221, 17, 68); ">  recommended and is included for legacy reasons only.&quot;</span></div>
</pre></span><div><br></div><div>So my question is, why isn&#39;t this recommended for production use?</div><div><br></div><div>-Josh</div><div><br><br><div class="gmail_quote">On Tue, Jul 5, 2011 at 2:52 PM, Jason J. W. Williams <span dir="ltr">&lt;<a href="mailto:jasonjwwilliams@gmail.com">jasonjwwilliams@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;">Hi Josh,<div><br></div><div>I think BlockingConnection has found new life in the latest Pikas. At least Gavin has put a lot of effort in for those of us that have requested it for teaching etc.</div>
<div><br></div><div><a href="https://github.com/rabbitinaction/sourcecode/blob/master/python/chapter-2/hello_world_producer.py" target="_blank">https://github.com/rabbitinaction/sourcecode/blob/master/python/chapter-2/hello_world_producer.py</a></div>

<div><br></div><div>-J<br><br><div class="gmail_quote"><div><div></div><div class="h5">On Tue, Jul 5, 2011 at 2:50 PM, Joshua Braegger <span dir="ltr">&lt;<a href="mailto:rckclmbr@gmail.com" target="_blank">rckclmbr@gmail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5">
<span style="border-collapse:collapse;font-family:arial, sans-serif;font-size:13px">Howdy,<br><br>I&#39;m looking at the Pika documentation, and it&#39;s mentioning that using<br>
BlockingConnection is deprecated. �The alternative is to use an<br>asynchronous model like SelectConnection. �This works fairly well for<br>consumers, but producing one-off messages leaves more to be desired.<br>BlockingConnection satisfies the case fairly well -- Create a global<br>



connection, send many messages, close the connection. �It gets hairy<br>when attempting to work asynchronously within a synchronous<br>application. �Especially given the fact I want to use the &quot;mandatory&quot;<br>flag, and know when any message fails to be enqueued in a synchronous<br>



manner.<br><br>Are there any best practices to doing this? �Is the answer to just use<br>BlockingConnection?<br><br>Thanks,<br><font color="#888888">-Josh</font></span>
<br></div></div>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">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>
<br></blockquote></div><br></div>
</blockquote></div><br></div>