<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I'm wondering if they have any difference at all with non durable ones</div><div>in rabbitmq. The reason why I'm asking is because I want to change the</div><div>least possible in the rabbitmq-erlang-client and I see that it supports</div><div>declaring durable queues easily but not durable exchanges easily.</div><div><br></div><div>Considering this I've tried creating a non durable exchange with a durable</div><div>queue and persistent messages and to my "surprise" even after consuming</div><div>all the messages in the queue I was still able to access the queue with the</div><div>messages even through restarts.</div><div><br></div><div>This is a small part of the consumer:</div><div><div>&nbsp;&nbsp; &nbsp;ch.exchange_declare(exchange, type='topic', auto_delete=False)</div><div>&nbsp;&nbsp; &nbsp;qname, _, _ = ch.queue_declare(queue, durable=True, auto_delete=False)</div><div>&nbsp;&nbsp; &nbsp;ch.queue_bind(queue, exchange, routing_key=sys.argv[2])</div><div>&nbsp;&nbsp; &nbsp;ch.basic_consume(queue, callback=callback)</div><div><br></div><div>This is a small part of the producer:</div><div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.ch.exchange_declare(exchange, type='topic', auto_delete=False)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;msg = amqp.Message(body, delivery_mode=2)</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;self.ch.basic_publish(msg, self.exchange, routing_key=key)</div><div><br></div><div>As you see I don't specify anything in the exchange_declare and by default</div><div>in py-amqplib is durable=False.</div><div><br></div><div>I tried both restarting rabbitmq with messages in the queue and then receiving</div><div>them. And then I tried with empty queue and then sending after restart, since I</div><div>don't create a queue in the producer it should fail or lose the message but instead</div><div>it's correctly delivered when I start the consumer.</div><div><br></div><div>Is this the expected behavior and I can avoid patching this part of the</div><div>rabbitmq-erlang-client?</div></div></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial; font-size: 13px; white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">-- </span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial; font-size: 13px; white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">Valentino Volonghi aka Dialtone</span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial; font-size: 13px; white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">Now&nbsp;running MacOS X 10.5</span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial; font-size: 13px; white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; ">Home Page: <a href="http://www.twisted.it">http://www.twisted.it</a> </span></div><div><span class="Apple-style-span" style="border-collapse: collapse; font-family: arial; font-size: 13px; white-space: pre-wrap; -webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px; "><a href="http://www.adroll.com">http://www.adroll.com</a></span></div></div></div></span></div></span></div></span> </div><br></body></html>