RabbitMQ related interview questions

What MQ is used? What usage scenario? Part of MQ? What should I do if MQ is down? How to achieve persistence?
MQ selection?
Kafka: a high-throughput, low-latency distributed message queue, mainly used for large-scale data processing and streaming processing
RocketMQ: RocketMQ is Alibaba's open source distributed message queue, with high throughput, low latency, high reliability, etc. Features
RabbitMQ: Easy-to-use message queue that supports multiple messaging modes such as point-to-point and publish-subscribe. It has good reliability and stability, supports message persistence, and ensures that messages will not be lost.

Why choose RabbitMQ?
The usage scenario is that logs generated by multiple business services need to be sent to the log service for processing. Combining the business background and technology selection, I initially chose RabbitMQ, which is relatively easy to get started, and the SpringBoot project integrates 1. Simple to use, powerful functions 2. Based
on
AMQP Protocol
3. Active community, complete documentation
4. Good high concurrency performance, mainly due to the Erlang language
5. SpringBoot has integrated RabbitMQ by default
Description of components:
Producer: message producer, that is, the producer client, the producer client will Messages are sent to MQ
Broker: message queue service process. This process consists of two parts: Exchange and Queue.
Exchange: message queue switch, which forwards messages to a queue according to certain rules and filters messages.
Queue: message queue, storage. The message queue, the message arrives in the queue and is forwarded to the designated consumer
Consumer: the message consumer, that is, the consumer client, receives the message forwarded by MQ

What are the usage scenarios of RabbitMQ in projects?

Guess you like

Origin blog.csdn.net/yang_guang3/article/details/132227264