RabbitMQ Urbiotica
RabbitMQ Urbiotica
counting API
RABBITMQ
RabbitMQ is a message broker, its role is to transport and
route messages from publishers to consumers.
The broker uses the exchanges and bindings to know whether
or not to deliver the message in the queue.
THE BINDINGS
Bindings are the rules that exchanges use to determine which queue
to deliver the message to. The different configurations can use the
routing key (direct/topic exchanges) as well as the headers (header
exchanges). In the case of fanout exchanges, the queues only have to
be binded to receive the message.
THE EXCHANGES
The direct exchange only allows binding using strictly the routing
key.
If the routing_key of the message is strictly equal to the
routing_key specified in the binding then the message will be
delivered to the queue.
BINDING.ROUTING_KEY == MESSAGE.ROUTING_KEY
The Topic Exchange delivers the message if the routing_key of
the message matches the pattern defined in the binding.
MATCH(BINDING.ROUTING_KEY, MESSAGE.ROUTING_KEY)
CONSUMER