MQ (Message Queue) 消息队列
Posted Hoaliti
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MQ (Message Queue) 消息队列相关的知识,希望对你有一定的参考价值。
Disadvantages of MQ
- Reduced system availability: System availability is reduced to some extent, why do you say this? Before joining MQ, you don\'t need to consider the situation of message loss or MQ hang, but after the introduction of MQ, you need to consider it!
- Increased system complexity: After joining MQ, you need to ensure that messages are not repeatedly consumed, deal with message loss, ensure the order of message delivery, and more!
- Consistency issues: I mentioned above that message queues can achieve asynchrony, and the asynchrony brought by message queues can indeed improve system response speed. But what if the real consumer of the message is not consuming the message correctly? This will lead to data inconsistencies!
以上是关于MQ (Message Queue) 消息队列的主要内容,如果未能解决你的问题,请参考以下文章