当前位置:网站首页>Synchronous vs asynchronous
Synchronous vs asynchronous
2022-07-03 10:13:00 【DadongDer】
There are two basic ways of message communication :
1、 Synchronization mode
Two communication application services must be synchronized , Both services must be running normally . Both sender and receiver must be running at all times , And be ready to communicate with each other at any time .
The sender first sends a request to the receiver , Call it sending messages , The sender will then block its current process , No communication and interaction with other applications , Wait for the response of the receiving program , After receiving the return message from the receiving program, the sending message will continue to run downward , Proceed to the next step of business processing .
2、 Asynchronous way
There is no need to wait online at the same time between two communication applications , Each party only needs to deal with its own business , For example, the sender does not need to log in to the receiver's response after sending the message , You can then deal with other tasks . That is to say, the sender and the receiver are independent of each other , The sender only cares about the sender , The receiver can only receive , There is no need to wait for the other party's response .
Java in JMS It is a typical asynchronous message processing mechanism ,JMS There are two types of messages : Point to point 、 Release / subscribe .
边栏推荐
猜你喜欢
CV learning notes alexnet
openCV+dlib實現給蒙娜麗莎換臉
3.1 Monte Carlo Methods & case study: Blackjack of on-Policy Evaluation
Pycharm cannot import custom package
My notes on the development of intelligent charging pile (III): overview of the overall design of the system software
Leetcode - 1670 conception de la file d'attente avant, moyenne et arrière (conception - deux files d'attente à double extrémité)
CV learning notes convolutional neural network
Retinaface: single stage dense face localization in the wild
LeetCode - 1172 餐盘栈 (设计 - List + 小顶堆 + 栈))
LeetCode - 5 最长回文子串
随机推荐
LeetCode - 703 数据流中的第 K 大元素(设计 - 优先队列)
Leetcode-106:根据中后序遍历序列构造二叉树
20220602数学:Excel表列序号
My notes on intelligent charging pile development (II): overview of system hardware circuit design
QT is a method of batch modifying the style of a certain type of control after naming the control
03 fastjason solves circular references
Leetcode - 895 maximum frequency stack (Design - hash table + priority queue hash table + stack)*
Problems encountered when MySQL saves CSV files
01 business structure of imitation station B project
Tensorflow2.0 save model
Window maximum and minimum settings
openCV+dlib实现给蒙娜丽莎换脸
1. Finite Markov Decision Process
20220603数学:Pow(x,n)
Opencv gray histogram, histogram specification
Mise en œuvre d'OpenCV + dlib pour changer le visage de Mona Lisa
. DLL and Differences between lib files
【C 题集】of Ⅵ
Deep Reinforcement learning with PyTorch
CV learning notes - deep learning