RabbitMQ message queue - push messages to multiple Queues via fanout mode

Describes how to use the fanout pattern to push messages to multiple queues.
Sometimes we encounter such a situation, multiple function modules want to get the complete message data. For example, a log message, one we want to output on the screen for real-time monitoring, and another user persistent log. Then you can use fanout mode. The fanout mode mode does not match the direct mode through routingkey, but sends the message to all the bound queues.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324381797&siteId=291194637