[rabbitmq-discuss] Confirm consistent hash exchange behavior

Simon MacMullen simon at rabbitmq.com
Fri Mar 15 13:06:31 GMT 2013


If we were to build the CHX this way, wouldn't that mean that as soon as 
you bound the first queue to it, all messages would have to get routed 
to that queue - and therefore subsequent bindings would have no effect 
since we can't change any routing?

Cheers, Simon

On 14/03/13 20:42, SteveO wrote:
> "You expected that once a routing key was routed to a queue, it continued
> routing to that specific queue until the queue is unbound? "
>
> Yeah, not sure why I - but that is what I expected. I probably started
> thinking that because that's what I wanted it to do :)
>
> We wanted to guarantee that at any given time, messages would only be
> delivered to one queue even if the bindings to other queues changed - like
> other queues being added. Processing messages in order is important for us
> and if we create a condition where messages exist in multiple queues, we
> can't guarantee that order. Over time, if we create and bind more queues to
> the same CHX, then we could create that condition - so we don't want to do
> that.
>
> If we run into an issue where we need to add more queues, it sounds like
> with a slightly more sophisticated producer and routing scheme, we could
> just add another CHX. Something like this...
>
>                               |--->CHX1--->Q1, Q2
> P ---> TopicExchange
>                               |--->CHX2--->Q1, Q2
>
> Thanks.
>
> s
>
>
>
> --
> View this message in context: http://rabbitmq.1065348.n5.nabble.com/Confirm-consistent-hash-exchange-behavior-tp25458p25462.html
> Sent from the RabbitMQ mailing list archive at Nabble.com.
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>


-- 
Simon MacMullen
RabbitMQ, VMware


More information about the rabbitmq-discuss mailing list