当前位置:网站首页>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
边栏推荐
猜你喜欢

同步通信和异步通信的区别以及优缺点

闭包问题C# Lua

Container with the most water

消息队列-全方位对比

MYSQL触发器要如何设置,简单教程新手一看就会

Evolution history of qunar Bi platform construction
![[micro service series] protocol buffer dynamic analysis](/img/86/357d55c77cc67d6413af2de59bf395.png)
[micro service series] protocol buffer dynamic analysis

Ppt template crawler case
Installing rainbow in various kubernetes with Helm

University Information Management System
随机推荐
Data visualization practice: Data Visualization
Import / export function implementation
How to make the main thread wait for the sub thread to execute before executing
Unsatisfied dependency expressed through field ‘baseMapper‘; nested exceptio
数据治理工作的几种推进套路
Go learning notes 1.3- data types of variables
Transaction and message semantics
Transformer中的Self-Attention以及Multi-Head Self-Attention(MSA)
Architecture design method
Evolution history of qunar Bi platform construction
实时数仓方案如何选型和构建
Gof23 - factory mode
浏览器的四大内核:Trident,Gecko,Webkit,Blink
GoF23—原型模式
302. minimum rectangular BFS with all black pixels
TCP connection and disconnection, detailed explanation of state transition diagram
China micro cultivator market trend report, technical dynamic innovation and market forecast
Go语言学习笔记 1.2-变量篇
When vs code uses prettier to format JS, there is a space between the name of the function definition and the parentheses, and ESLIt does not allow this space
zip(*arg)的用法