Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
RabbitMQ exchange type for randomly selecting which queue to route to for load balancing.
Erlang Python
branch: master

Merge pull request #10 from videlalvaro/master

brings exchange behaviour up to date
latest commit e851b4e197
@jbrisbin authored
Failed to load latest commit information.
include Created an empty include dir in order for make package to work
src brings exchange behaviour up to date
Makefile Initial commit.
rebar Initial commit.

RabbitMQ Random Exchange Type

This exchange type is for load-balancing among consumers. It's basically a direct exchange, with the exception that, instead of each consumer bound to that exchange with the same routing key getting a copy of the message, the exchange type randomly selects a queue to route to.

There is no weighting or anything, so maybe load "balancing" might be a bit of a misnomer. It uses Erlang's crypto:rand_uniform/2 function, if you're interested.


git clone git://
cd random-exchange
make package
cp dist/*.ez $RABBITMQ_HOME/plugins


To use it, declare an exchange of type "x-random".

Apache 2.0 Licensed:
Something went wrong with that request. Please try again.