当前位置:网站首页>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带来的一系列的问题解决掉,等一切都做好之后,系统的复杂程度硬生生提高了一个等级。
边栏推荐
- Brief introduction of Feature Engineering in machine learning
- MySQL recursion
- Video content production and consumption innovation
- 阿里天池SQL训练营学习笔记5
- com.alibaba.fastjson.JSONObject # toJSONString 消除循环引用
- MySQL download and installation tutorial
- MySQL modify data type_ MySQL modify field type [easy to understand]
- Unity技术手册-初探性能优化
- 设计电商秒杀系统
- 链表中环的入口结点-链表专题
猜你喜欢

VMware16安装Win11虚拟机(最全步骤+踩坑)

Reading notes of "high EQ means being able to talk"

Lenovo Yoga 27 2022, full upgrade of super configuration

Entropy - conditional entropy - joint entropy - mutual information - cross entropy

Construction and practice of full stack code test coverage and use case discovery system

How to use the low code platform of the Internet of things for service management?

DTD modeling

Practice and Thinking on the architecture of a set of 100000 TPS im integrated message system

4个技巧告诉你,如何使用SMS促进业务销售?

Huaxing Securities: kitex practice under the original hybrid Cloud Architecture
随机推荐
【UML】UML类图
Task01:初识数据库与SQL(笔记1)
NBI可视化平台快速入门教程(五)编辑器功能操作介绍
torch stack() meshgrid()
How to configure webrtc video stream format playback in the new version of easygbs?
com. alibaba. fastjson. Jsonobject tojsonstring eliminate circular reference
简述机器学习中的特征工程
拓維信息使用 Rainbond 的雲原生落地實踐
微信小程序快速入门 --项目介绍
Unity technical manual - preliminary performance optimization
The cloud native landing practice of using rainbow for Tuowei information
js 字符串截取方法汇总
openGauss数据库源码解析系列文章—— 密态等值查询技术详解(上)
开发那些事儿:Linux系统中如何安装离线版本MySQL?
Can go struct in go question bank · 15 be compared?
20220607跌破建议零售价,GPU市场正全面走向供过于求...
连接实验室服务器
Delete duplicate elements in the sorting linked list ii[unified operation of linked list nodes --dummyhead]
虚拟主机什么时候适合更换成云主机?
mysql函数获取全路径