当前位置:网站首页>MQ优缺点(2022.5.2-5.8)
MQ优缺点(2022.5.2-5.8)
2022-06-30 18:22:00 【看水是水】
消息队列的优缺点
优点
上面已经说过了,系统解耦,异步调用,流量削峰。
缺点
①系统可用性降低:系统引入的外部依赖越多,系统要面对的风险越高,拿场景一来说,本来ABCD四个系统配合的好好的,没啥问题,但是你偏要弄个MQ进来插一脚,虽然好处挺多,但是万一MQ挂掉了呢,那样你系统不也就挂掉了。
②系统复杂程度提高:非要加个MQ进来,如何保证没有重复消费呢?如何处理消息丢失的情况?怎么保证消息传递的顺序?问题太多。
③一致性的问题:A系统处理完再传递给MQ就直接返回成功了,用户以为你这个请求成功了,但是,如果在BCD的系统里,BC两个系统写库成功,D系统写库失败了怎么办,这样就导致数据不一致了。
所以。消息队列其实是一套非常复杂的架构,你在享受MQ带来的好处的同时,也要做各种技术方案把MQ带来的一系列的问题解决掉,等一切都做好之后,系统的复杂程度硬生生提高了一个等级。
边栏推荐
- Neon optimization 2: arm optimization high frequency Instruction Summary
- 【PHP】自研框架QPHP,qphp框架使用
- 【DesignMode】单例模式(singleton pattern)
- How to use the low code platform of the Internet of things for service management?
- 浏览器窗口切换激活事件 visibilitychange
- Cobbler is easy to use
- Develop those things: how to add text watermarks to videos?
- 华兴证券:混合云原生架构下的 Kitex 实践
- 一套十万级TPS的IM综合消息系统的架构实践与思考
- openGauss数据库源码解析系列文章—— 密态等值查询技术详解(上)
猜你喜欢

传统微服务框架如何无缝过渡到服务网格 ASM

Influence and requirements of different manufacturing processes on the pad on PCB
![20220528 [talk about fake chips] those who are greedy for cheap often suffer heavy losses. Take stock of those fake memory cards and solid state drives](/img/96/8e195536127b90d4eec54294371cad.png)
20220528 [talk about fake chips] those who are greedy for cheap often suffer heavy losses. Take stock of those fake memory cards and solid state drives

Kalman filter -- Derivation from Gaussian fusion

ANSI/UL 94 5-V级垂直燃烧试验

【DesignMode】工厂模式 (factory pattern)

华兴证券:混合云原生架构下的 Kitex 实践

不同制造工艺对PCB上的焊盘的影响和要求

Evolution of screen display technology

Unlimited cloud "vision" innovation | the 2022 Alibaba cloud live summit was officially launched
随机推荐
Entry node of link in linked list - linked list topic
「经验」爬虫在工作中的实战应用『理论篇』
传统微服务框架如何无缝过渡到服务网格 ASM
Rust 如何实现依赖注入?
mysql下载和安装详细教程
Browser window switch activation event visibilitychange
教你Selenium 测试用例编写
正则表达式(正则匹配)
Trust configuring domestic sources
Business Intelligence BI and business management decision-making thinking 4: business cost analysis
20220607 fell below the recommended retail price, and the GPU market is moving towards oversupply
年复一年,为什么打破数据孤岛还是企业发展的首要任务
com.alibaba.fastjson.JSONObject # toJSONString 消除循环引用
Pytorch learning (III)
NBI可视化平台快速入门教程(五)编辑器功能操作介绍
「干货」数据分析常用的10种统计学方法,附上重点应用场景
ros advertise 发布数据小技巧--latch配置
Electron 入门
小球大小随机,随机运动碰撞
一套十万级TPS的IM综合消息系统的架构实践与思考