当前位置:网站首页>Differences, advantages and disadvantages between synchronous communication and asynchronous communication
Differences, advantages and disadvantages between synchronous communication and asynchronous communication
2022-06-26 06:33:00 【Saipan】
Synchronous communication : It's like making a phone call , Need real-time response .
Asynchronous communication : It's like sending an email , No need to reply immediately .

Advantages of synchronous communication :
It has a strong timeliness , You can get immediate results
Disadvantages of synchronous communication :
High coupling degree
Performance and throughput degradation
There is additional resource consumption
There is a cascading failure problem
Advantages of asynchronous communication :
Throughput improvement : There is no need to wait for subscriber processing to complete , Faster response
Fault isolation : The service does not call directly , There is no cascading failure problem
There is no blocking between calls , It will not cause invalid resource occupation
Very low coupling , Each service can be plugged flexibly , alternative
Traffic peak clipping : No matter how volatile the traffic of the release event is , All by Broker receive , Subscribers can handle events at their own pace
Disadvantages of asynchronous communication :
The architecture is complex , There is no obvious business process line , Poor management
Need to rely on Broker Reliability of 、 Security 、 performance
边栏推荐
- Market trend report, technical innovation and market forecast of microencapsulated chemical pesticides in China
- 消息队列-消息事务管理对比
- Research Report on market supply and demand and strategy of China's microneedle device industry
- Decision tree learning notes
- Load balancer does not have available server for client: userService问题解决
- ~94 zoom
- Gof23 - builder mode
- 打印数字的位信息
- Install pyinstaller
- Data visualization practice: Data Visualization
猜你喜欢

How to select and build a real-time data warehouse scheme

Five solutions across domains

Gof23 - factory mode

Data visualization practice: Experimental Report

宝塔服务器搭建及数据库远程连接

Architecture design method
How can an enterprise successfully complete cloud migration?

Import / export function implementation

直播预告丨消防安全讲师培训“云课堂”即将开讲!
A new paradigm for large model application: unified feature representation optimization (UFO)
随机推荐
GoF23—抽象工厂模式
Mysql delete in 不走索引的
闭包问题C# Lua
Efk upgrade to Clickhouse log storage practice
Logstash -- send an alert message to the nail using the throttle filter
Volatile application scenarios
Gof23 - prototype mode
Container with the most water
Distribution operation of D
GoF23—建造者模式
技术能力的思考和总结
ts中枚举类型(enum)简单使用
Library management system
数据治理工作的几种推进套路
DPDK——TCP/UDP协议栈服务端实现(一)
Introduction to canal deployment, principle and use
Several promotion routines of data governance
Installing rainbow in various kubernetes with Helm
Unsatisfied dependency expressed through field ‘baseMapper‘; nested exceptio
Introduction to the use of TS generics in functions, interfaces and classes