当前位置:网站首页>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
- Label Semantic Aware Pre-training for Few-shot Text Classification
- Leetcode 300 longest ascending subsequence
- is_ power_ of_ 2 judge whether it is a multiple of 2
- Google browser plug-in recommendation
- Octave instructions
- 波士顿房价预测(TensorFlow2.9实践)
- LeetCode - 705 设计哈希集合(设计)
- My notes on intelligent charging pile development (II): overview of system hardware circuit design
- Development of intelligent charging pile (I): overview of the overall design of the system
猜你喜欢

Leetcode - 705 design hash set (Design)

LeetCode - 1172 餐盘栈 (设计 - List + 小顶堆 + 栈))

Leetcode - 933 number of recent requests

Opencv feature extraction - hog

LeetCode - 1670 设计前中后队列(设计 - 两个双端队列)

Swing transformer details-1

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

Implementation of "quick start electronic" window dragging

Yocto technology sharing phase IV: customize and add software package support

QT is a method of batch modifying the style of a certain type of control after naming the control
随机推荐
[combinatorics] Introduction to Combinatorics (combinatorial idea 3: upper and lower bound approximation | upper and lower bound approximation example Remsey number)
Octave instructions
Circular queue related design and implementation reference 1
Tensorflow2.0 save model
CV learning notes ransca & image similarity comparison hash
Leetcode - 1670 design front, middle and rear queues (Design - two double ended queues)
Tensorflow built-in evaluation
LeetCode 面试题 17.20. 连续中值(大顶堆+小顶堆)
Deep Reinforcement learning with PyTorch
4G module initialization of charge point design
20220603 Mathematics: pow (x, n)
Connect Alibaba cloud servers in the form of key pairs
yocto 技術分享第四期:自定義增加軟件包支持
Qcombox style settings
openCV+dlib实现给蒙娜丽莎换脸
Vgg16 migration learning source code
Opencv notes 17 template matching
使用密钥对的形式连接阿里云服务器
openCV+dlib實現給蒙娜麗莎換臉
Flutter 退出当前操作二次确认怎么做才更优雅?