One: AMQP protocol?
--->AMQP is the advanced message Queuing Protocol, which is a premium messaging queuing protocol. Unlike the previously listed technologies, AMQP is a standardized messaging middleware protocol
---> Her ideal is to allow different languages, different system applications to communicate with each other and provide a simple unified model and programming interface. In this way, people can implement their own applications in a variety of languages and platforms, and when they need to communicate with other systems, simply acknowledge the AMQP protocol.
Two: A visual example of the AMQP protocol?
---> People around the world use a variety of different languages for geographical and historical reasons, and it is not easy to communicate with each other. AMQP is similar to an automatic translator, when I say something in Chinese to it, if an English world people want to hear, you can hear the English version of the exact word of the translation.
---> This translator also offers many other benefits, such as China and the United States have a 12-hour time difference, if I now want to speak to an American, he must get up in the middle of the night, or I have to wait until he gets up, but through this machine, I finished, the American woke up will hear. I am very relieved that this sentence will never be lost, and will never be distorted;
---> I can actually not care how many people come to listen, if more people want to hear, then they can also hear at any time.
---> If I only want to let some people hear, also can encrypt authentication;
---> If some people do not want to hear, some people want to hear, then the translator can also know who wants to hear, and will not send my voice to those who do not want to hear.
Three: The AMQP protocol architecture diagram?
---> In the AMQP model, the producer of messages sends a message to Exchange,exchange responsible for swapping/routing, and the message is correctly forwarded to the appropriate Queue. The Consumer of the message reads the message from the Queue.
---> This process is asynchronous, Producer and Consumer are not directly connected or even unaware of each other's existence.
--->exchange How to route it? This relies on Routing key, where each message has a Routing key, and each Queue can tell exchange the Routing key that it is interested in by a Binding so that exchange can correctly forward the message to the should be the Queue. The following table lists the definitions of these key concepts.
IV: Several core concepts of AMQP
---> Producer (Producer): Writes a message to an interchange program. To do this, the program creates a message, populates the message with content, gives the message a routing key, and sends the message to an interchange.
---> Message subject (Routing Key): A string that can be used to determine its message content to be sent to the specified queue
---> Switch (Exchange): Receives a producer message and sends a message to the object's queue based on the message subject.
---> Relationship binding: Defines a relationship between an interchange and a queue, and the specified information should be routed to a given queue
---> Message Queuing: A subscription queue that provides information to customers.
---> Consumer (Consumer): The program reads messages from the tail.
One: The AMQP protocol Standard Simple Introduction