当前位置:网站首页>Kitex retry mechanism
Kitex retry mechanism
2022-07-07 11:05:00 【wangxiaoming】
Kitex Retry mechanism
When will I try again ?
kitex Crazy Jane currently has the following three retry mechanisms :
- Time out to try again
- Backup Request( No response received for a period of time , retry )
- Connection failed. Try again
The framework currently has three types of retries : Time out to try again 、Backup Request, Failed to create connection. Try again ( Default ). The connection failure is a network level problem , Because the request was not sent , The framework will retry by default , Business needs no attention .
Time out to try again
Timeout exception due to network jitter , High downstream load or GC And so on GC Jamming leads to timeout .
How to set the retrying policy ?
There are generally three kinds of exceptions :
- Business customization exception
- Timeout exception
- Non timeout framework class exception
There are generally two ways to make abnormal business judgments
Thrown downstream Error
The error code returned by the downstream
return Error The custom exception configuration method is as follows :
RetryWithError(IsErrorRetry)
- adopt
BaseRespCustom error code configuration
RetryWithResult(IsResultRetry)
- Retry count configuration
Maximum number of retries , Stop retrying if the maximum number of retries is exceeded .
WithMaxRetry边栏推荐
- [OneNote] can't connect to the network and can't sync the problem
- The sixth training assignment
- Unity downloads files through the server address
- 深入理解Apache Hudi异步索引机制
- 【STM32】实战3.1—用STM32与TB6600驱动器驱动42步进电机(一)
- 【PyTorch 07】 动手学深度学习——chapter_preliminaries/ndarray 习题动手版
- [machine learning 03] Lagrange multiplier method
- P1223 queuing for water /1319: [example 6.1] queuing for water
- JS implementation chain call
- 2021-04-23
猜你喜欢

在线硬核工具

When do you usually get grades in the soft exam? Online pedaling?

Seata 1.3.0 four modes to solve distributed transactions (at, TCC, Saga, XA)

How to prepare for the advanced soft test (network planning designer)?
![1323: [example 6.5] activity selection](/img/2e/ba74f1c56b8a180399e5d3172c7b6d.png)
1323: [example 6.5] activity selection

Use load_ decathlon_ Datalist (Monai) fast loading JSON data

Find the greatest common divisor and the least common multiple (C language)

2022年上半年5月网络工程师试题及答案

Shardingsphere sub database and table examples (logical table, real table, binding table, broadcast table, single table)

Monai version has been updated to 0.9. See what new functions it has
随机推荐
[recommendation system 02] deepfm, youtubednn, DSSM, MMOE
JSON format query of MySQL
【PyTorch 07】 动手学深度学习——chapter_preliminaries/ndarray 习题动手版
[STM32] actual combat 3.1 - drive 42 stepper motors with STM32 and tb6600 drivers (I)
Using tansformer to segment three-dimensional abdominal multiple organs -- actual battle of unetr
SQL Server 知识汇集11 : 约束
The fifth training assignment
1321: [example 6.3] deletion problem (noip1994)
Laya common script commands
如何顺利通过下半年的高级系统架构设计师?
CAS mechanism
Transaction rolled back because it has been marked as rollback-only解决
ArrayList thread insecurity and Solutions
ThreadLocal is not enough
How to play video on unityui
Simple and easy to modify spring frame components
滚动踩坑--UNI_APP(八)
Which securities company is the best and safest to open an account for the subscription of new shares
2021-04-23
uniapp 在onLaunch中跳转页面后,点击事件失效解决方法