What is the routing mode of rabbitmq?

Alibaba cloud Q & A 2022-02-13 08:06:27 阅读数:27

routing mode rabbitmq

RabbitMQ Of routing Routing mode , What is it ?

Take the answer 1:

1. The message producer sends the message to the switch according to the routing judgment , The route is a string (info) Currently generated messages carry routing characters ( Object method ), Switches are routed according to key, Only the upper route can be matched key Corresponding message queue , The corresponding consumer can consume the news ;

2. Define the routing string according to the business function

3. Get the corresponding function string from the system's code logic , Throw the message task into the corresponding queue .

4. Business scenario :error notice ;EXCEPTION; Function of error notification ; Error notification in traditional sense ; Customer notice ; utilize key route , Errors in the program can be encapsulated as messages passed into the message queue , Developers can customize consumers , Real time receive error .

copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130806258484.html