Queue Bindings in RabbitMQ

Bindings can take an extra routingKey parameter. To avoid the confusion with a basic_publish parameter we’re going to call it a binding key. This is how we could create a binding with a key:

channel.queueBind(queueName, EXCHANGE_NAME, "black");

Multiple bindings
In that case, the direct exchange will behave like fanout and will broadcast the message to all the matching queues