RabbitMQ | exchange types

There are three common types of exchange, are as follows

  1. “fanout”

    Sent to the switch to route all messages bound with the switch queue.

  2. ”direct“

    Sent to the message routing switch and those BindingKey exact match queue RoutingKey

  3. “topic”

    And "direct" similar type of switch, and routes the message to BindingKey RoutingKey match queue, but on different matching rules

    RountingKey BindingKey and a dot-separated string, the string may be separated by the word referred to, for example, ".": Log.warning, log.debug, log.info

    BindingKey can exist in two special characters "*" and "#", used to do fuzzy matching, "*": matches a word, "#": multi-standard word match

Guess you like

Origin www.cnblogs.com/jj81/p/11529902.html