当前位置:网站首页>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 .
边栏推荐
- Installation and removal of MySQL under Windows
- Markdown latex full quantifier and existential quantifier (for all, existential)
- LeetCode - 900. RLE 迭代器
- 20220604 Mathematics: square root of X
- My openwrt learning notes (V): choice of openwrt development hardware platform - mt7688
- getopt_ Typical use of long function
- 20220605 Mathematics: divide two numbers
- Implementation of "quick start electronic" window dragging
- 03 fastjason solves circular references
- Opencv feature extraction sift
猜你喜欢

LeetCode - 919. Full binary tree inserter (array)

CV learning notes - reasoning and training

Dictionary tree prefix tree trie

Leetcode-513:找树的左下角值
![[combinatorics] Introduction to Combinatorics (combinatorial idea 3: upper and lower bound approximation | upper and lower bound approximation example Remsey number)](/img/19/5dc152b3fadeb56de50768561ad659.jpg)
[combinatorics] Introduction to Combinatorics (combinatorial idea 3: upper and lower bound approximation | upper and lower bound approximation example Remsey number)

Mise en œuvre d'OpenCV + dlib pour changer le visage de Mona Lisa

Adaptiveavgpool1d internal implementation

4.1 Temporal Differential of one step

Leetcode-513: find the lower left corner value of the tree

CV learning notes - camera model (Euclidean transformation and affine transformation)
随机推荐
CV learning notes - BP neural network training example (including detailed calculation process and formula derivation)
Leetcode - 895 maximum frequency stack (Design - hash table + priority queue hash table + stack)*
Simulate mouse click
LeetCode - 895 最大频率栈(设计- 哈希表+优先队列 哈希表 + 栈) *
Leetcode-112:路径总和
波士顿房价预测(TensorFlow2.9实践)
CV learning notes - feature extraction
CV learning notes - scale invariant feature transformation (SIFT)
01 business structure of imitation station B project
Flutter 退出当前操作二次确认怎么做才更优雅?
2.1 Dynamic programming and case study: Jack‘s car rental
Label Semantic Aware Pre-training for Few-shot Text Classification
Leetcode - the k-th element in 703 data flow (design priority queue)
Discrete-event system
CV learning notes - clustering
03 fastjason solves circular references
YOLO_ V1 summary
1. Finite Markov Decision Process
Opencv gray histogram, histogram specification
QT setting suspension button