Skip to content

Instantly share code, notes, and snippets.

@burningsky250
Last active October 26, 2019 02:31
Show Gist options
  • Select an option

  • Save burningsky250/b95302354869582ec26c7cf0acc1fe16 to your computer and use it in GitHub Desktop.

Select an option

Save burningsky250/b95302354869582ec26c7cf0acc1fe16 to your computer and use it in GitHub Desktop.
rabbitmq notes

rabbitmq exchange type:

  • direct:

    when a queue is bound to this exchange with a specific routing_key(rk), messages coming into the exchange with topic of the same with the routing_key(rk) will be pushed into the queue. if there are multiple queues bound with the same routing key, the message will be fan-outed to all the queues.

  • fan-out

    when a queue is bound to this exchange, whatever the routing key is specified, a message coming into the exchange will be fan-outed to the queue.

  • topic a message coming into this exchange will be routed to the queue whose bound routing_key pattern is matched with the topic of the message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment