当前位置:网站首页>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 .
边栏推荐
- Positive and negative sample division and architecture understanding in image classification and target detection
- LeetCode - 508. Sum of subtree elements with the most occurrences (traversal of binary tree)
- 20220604 Mathematics: square root of X
- Leetcode - 1172 plate stack (Design - list + small top pile + stack))
- 3.2 Off-Policy Monte Carlo Methods & case study: Blackjack of off-Policy Evaluation
- LeetCode - 706 设计哈希映射(设计) *
- LeetCode - 1670 設計前中後隊列(設計 - 兩個雙端隊列)
- Opencv gray histogram, histogram specification
- Toolbutton property settings
- CV learning notes alexnet
猜你喜欢

Vgg16 migration learning source code

Swing transformer details-1

Label Semantic Aware Pre-training for Few-shot Text Classification

使用密钥对的形式连接阿里云服务器

2.1 Dynamic programming and case study: Jack‘s car rental

LeetCode - 705 设计哈希集合(设计)

LeetCode - 460 LFU 缓存(设计 - 哈希表+双向链表 哈希表+平衡二叉树(TreeSet))*

LeetCode - 900. RLE iterator

LeetCode - 673. 最长递增子序列的个数

Adaptiveavgpool1d internal implementation
随机推荐
LeetCode - 705 设计哈希集合(设计)
Leetcode-106: construct a binary tree according to the sequence of middle and later traversal
Leetcode-513: find the lower left corner value of the tree
20220605 Mathematics: divide two numbers
Leetcode - 895 maximum frequency stack (Design - hash table + priority queue hash table + stack)*
Vgg16 migration learning source code
LeetCode - 919. Full binary tree inserter (array)
[C question set] of Ⅵ
Window maximum and minimum settings
20220531数学:快乐数
2021-11-11 standard thread library
CV learning notes convolutional neural network
Opencv notes 17 template matching
Leetcode 300 最长上升子序列
Leetcode-100:相同的树
20220604数学:x的平方根
4G module board level control interface designed by charging pile
Leetcode 300 longest ascending subsequence
20220603数学:Pow(x,n)
Leetcode - 933 number of recent requests