90 minutes to learn RabbitMQ

Message Queue three core elements:

  • News producer
  • message queue
  • Consumer news

RabbitMQ On this basis, an increase of [switch] Exchange

Exchangers Exchange Type:

  • Direct Exchange direction switch : exact match for the key route according to the routing message queue
  • Topic Exchange wildcard switch
    • * Represents a single word: for example niuben * == niuben.queue
    • # Represents a single multi-word: for example niuben # == niuben.queue.queue
  • Fanout Exchange broadcasting switch : no route matches, bind all who sent
  • Header Exchange binding message based on content attribute header (not used)

Message transfer process

Guess you like

Origin www.cnblogs.com/niudaben/p/12133475.html