Graphical peak-cutting current-limiting technology, RabbitMq message queue solves high concurrency, high-concurrency peak-cutting current-limiting technology, comparison of mainstream message queues

1. Introduction to message queue:

  • Message queuing middleware is an important component in a distributed system. It mainly solves the problems of application decoupling, asynchronous messaging, traffic cutting, etc., to achieve high performance, high availability, scalability and eventual consistency architecture.
  • Currently, the most commonly used message queues are ActiveMQ, RabbitMQ, ZeroMQ, Kafka, RocketMQ.
  • The main application scenarios: decoupling, asynchronous, peak clipping

2. Application scenarios:

Insert picture description here

  1. Spike activity: Spike activity, usually due to excessive traffic, causes a surge in traffic and application hangs.
  2. User orders: In high concurrency scenarios, users need to notify the order system and inventory system after placing an order.
  3. Distributed log system: In a distributed system, the log system needs to collect logs generated by each system.

3. Practical application of message queue

1. Decoupling:

Insert picture description here

2. Asynchronous:

Insert picture description here

3. Peak clipping:

Insert picture description here

4. Comparison table of mainstream message queues:

Insert picture description here

Five. Spring boot combined with RabbitMq actual combat (including source code)

https://blog.csdn.net/penggerhe/article/details/108404141

Insert picture description here

Guess you like

Origin blog.csdn.net/penggerhe/article/details/108404243