<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div><div>I need a second pair of eyes on a small RMQ app I'm working on. </div><div>I suspect the issue I'm seeing is related to how I am defining my exchanges and queues.</div><div><br></div><div>If I connect with two clients, I'll see every other message appear on my client. If I connect with three clients, I see every third message, and so on. In other words, it appears to 1) be deleting every message that gets produced on consumption, and 2) round robins which consumer gets each message.</div><div><br></div><div>What I want to see is all clients get the same message each time one is posted.</div><div><br></div><div>Is a topic approach the best approach for this, or is fanout the better way to handle this?</div><div><br></div><div>Here's the specifics of how my producer and consumer is set up:</div><div><br></div><div><br></div><div>PRODUCER (client=bunny)</div><div>=====================</div><div><br></div><div>@topic_exchange ||= client.exchange("internal.platformalert", :type => :topic,</div><div> :durable => true, :autodelete => false)</div><div>@queue ||= client.queue("internal.platformalert.#", :durable => true,</div><div> :autodelete => false, :arguments => {'x-ha-policy' => 'all'})</div><div>queue.bind(e, :key => "alert")</div><div>exchange.publish(message, :key => "alert", :persistent => true) </div><div><br></div><div><br></div><div>CONSUMER (client=ruby-amqp)</div><div>=====================</div><div><br></div><div>exchange = channel.topic("internal.platformalert", :durable => true, :autodelete => false)</div><div>queue = channel.queue("internal.platformalert.#", :durable => true, :autodelete => false, </div><div> :arguments => {'x-ha-policy' => 'all'})</div><div>queue.bind(exchange, :routing_key => "alert")</div><div>queue.subscribe(:ack => false) do |header, body|</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>… do stuff</div><div>end</div><div><br></div><div><br></div><div>Many thanks!</div><div><br></div><div>Chris</div></div></body></html>