<div dir="ltr">If you're worried about the crash - definitely look at two clusters. You can use shovel to keep them in sync. We're using a fanout to two queues on the publish side to a rabbit cluster locally. Then each queue is shoveled to a cluster on the remote side. <div>
<br></div><div>Jason</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 2, 2014 at 11:37 AM, Michael Klishin <span dir="ltr"><<a href="mailto:mklishin@gopivotal.com" target="_blank">mklishin@gopivotal.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""> On 2 June 2014 at 20:26:13, guardion (<a href="mailto:guardion@sapo.pt">guardion@sapo.pt</a>) wrote:<br>
> > I have a producer sending messages to a rabbitmq cluster composed<br>
> by two<br>
> machines (A and B)<br>
><br>
> I can use mirrored queues to achieve availability in case of crash.<br>
> A and B<br>
> have the same state (exchanges, queues, messages) right ?<br>
<br>
</div>Queue mirroring replicate queue state. It does not affect exchanges.<br>
<br>
See <a href="http://www.rabbitmq.com/ha.html" target="_blank">http://www.rabbitmq.com/ha.html</a> and <a href="http://www.rabbitmq.com/partitions.html" target="_blank">http://www.rabbitmq.com/partitions.html</a><br>
for more information.<br>
<div class=""><br>
> What i need is that messages delivered to the cluster are replicated<br>
> and<br>
> consumed individually, meaning, Message Y arrives at the cluster,<br>
> then it's<br>
> replicated to A and B, and consumed by a consumer working in A and<br>
> another<br>
> consumer working in B.<br>
><br>
> The same message should be consumed separatly in each node.<br>
><br>
> How can i make this? Do i need to turn off mirored queues and create<br>
> different exchanges ?<br>
<br>
</div>You need to use fanout or topic exchange and make sure that messages<br>
are routed to multiple queues. First part of your question suggests<br>
you want those queues to be mirrored.<br>
<br>
However, you may want to replicate data between two clusters. See<br>
Shovel and Federation plugins:<br>
<br>
<a href="http://www.rabbitmq.com/shovel.html" target="_blank">http://www.rabbitmq.com/shovel.html</a><br>
<a href="http://www.rabbitmq.com/federation.html" target="_blank">http://www.rabbitmq.com/federation.html</a><br>
--<br>
MK<br>
<br>
Software Engineer, Pivotal/RabbitMQ<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Jason McIntosh<br><a href="https://github.com/jasonmcintosh/" target="_blank">https://github.com/jasonmcintosh/</a><br>573-424-7612</div>
</div>