Brief introduction:

RabbitMQ works with messages as a message broker, receiving and forwarding messages.

1. Erlang RabbitMQ.

2. The Advanced Message Queuing Protocol (AMQP) is used, which is a language-independent messaging Protocol.

Application Scenarios:

It applies to queuing algorithms, seckill activities, message distribution, asynchronous processing, data synchronization, processing time-consuming tasks, and CQRS

Rabbitmq message model:

Publisher: producer, sender of messages.

Connection: indicates the network Connection.

Channel: a separate two-way data Channel in a multiplexing connection.

Exchange: an Exchange (router) that routes messages to the corresponding queue.

Binding: Associative Binding between queues and switches. The consumer binds the queue of interest to the specified Exchange so that Exchange can accurately distribute messages to the specified queue.

Queue: Queue, buffer storage area for messages.

Virtual Host: a Virtual Host provides logical grouping and separation of resources. Includes connections, exchanges, queues, bindings, user permissions, policies, etc.

Broker: Server entity of a message queue.

Consumer: the receiver of a message.

Installation:

www.rabbitmq.com/download.ht…

MAC installation:

1, brew install rabbitmq

2. Set environment variable ‘sudo vi /etc/profile’

// Add the following two lines

Export RABBIT_HOME = / usr/local/Cellar/rabbitmq / 3.7.4

export PATH=
P A T H : PATH:
RABBIT_HOME/sbin

// Effective immediately

source /etc/profile`

Use:

1 Rabbitmq-server-detached // Background start

Rabbitmactl status // Check the rabbitmactl status

3.RabbitMQ management background http://localhost:15672

Default username and password: guest/guest

4, rabbitmqctl stop // stop