[rabbitmq-discuss] Routing via user id
Michael Klishin
mklishin at gopivotal.com
Mon Jul 14 00:00:56 BST 2014
On 14 July 2014 at 02:48:37, Laing, Michael (michael.laing at nytimes.com) wrote:
> > You should look at the 'consistent-hash-exchange': http://www.rabbitmq.com/plugins.html
>
> By either using the user id as the routing key or by setting a header
> to the user id, messages w a particular user id will always get
> routed to the same queue.
as long as the list of bindings does not change. The point of using consistent hashing
is to minimise the number of key/queue "re-mappings" when queues are bound
or unbound, though.
--
MK
Staff Software Engineer, Pivotal/RabbitMQ
More information about the rabbitmq-discuss
mailing list