RabbitMQ message queue 20200220--

Here Insert Picture Description
Here Insert Picture Description
RabbitMQ

MQ called the Message Queue, i.e., message queues, RabbitMQ language developed by erlang, based AMQP (Advanced Message Queue Advanced Message Queuing Protocol) protocol message queue, it is the method of communication between an application program, a message queue distribution system development is widely used.

The official address RabbitMQ RabbitMQ official address

Development of the message queue typically have the following scenarios:

1, asynchronous processing tasks. The process does not require synchronization and time-consuming operation is processed by the asynchronous message queue recipient notification message. Improves the response time of the application.
2, the application is decoupled MQ equivalent of an intermediary, the production side and consumption side by MQ interaction, it will decouple the application.

What message queue on the market?

ActiveMQ,RabbitMQ,ZeroMQ,Kafka,MetaMQ,RocketMQ、Redis。

Why use RabbitMQ it?

1, making simple and powerful.
2, based on the AMQP protocol.
3, community activists, and improve documentation.
4, good high concurrent performance, mainly due to the Erlang language.
5, Spring Boot default integrated RabbitMQ

AMQP
AMQP protocol is a set of open message queue, the first to be presented in 2003, it aims to define a standard format messaging data from the protocol layer, it is to solve the MQ market agreement is not unified. RabbitMQ is to follow the MQ service AMQP standard protocol development.

JMS
JMS is a messaging standard java API provided, which aims to provide a unified application for all java messaging standard, similar to the java jdbc, jms between applications simply follow the standard message communication can be carried out. It AMQP and what is the difference, jms is dedicated java language news service standard, which is defined in the standard api layer, and can only be used for java applications; and AMQP standard is defined in the protocol layer, is cross-language.

Quick Start RabbitMQ
Here Insert Picture Description
Here Insert Picture Description

Post receiving process:

Send message ----- ----- 1 Broker producers and establish a TCP connection. 2, producers and establish Broker channel. 3, through the channel message sent by the producer to the Broker, the message will be forwarded by the Exchange. 4, Exchange forwards the message to the specified Queue (queue)
---- ----- received message 1. Broker consumers and 2 establish a TCP connection, the establishment of channels 3 Broker consumers and consumer listening specified Queue ( queue) 4, when a message arrives queue Broker default push a message to the consumer. 5, the consumer receives a message.

Installation Process

Installation erl language
installation rabbitMQ
install plug-ins that can be displayed in a browser

Here Insert Picture Description

Published 735 original articles · won praise 42 · views 70000 +

Guess you like

Origin blog.csdn.net/qq_36344771/article/details/104412567