How many broadcast types does RabbitMQ have?

direct (default mode): The most basic and simple mode, the sender sends the message to the subscriber. If there are multiple subscribers, the polling method is used by default to send the message.

headers: similar to direct, except that the performance is very poor and this type is almost never used.

fanout: distribution mode, distribute consumption to all subscribers.

topic: Match the subscription mode, use regular expressions to match the message queue, and all that can be matched will be received.

Guess you like

Origin blog.csdn.net/YOUYOU0710/article/details/109704501