当前位置:网站首页>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边栏推荐
- seata 1.3.0 四種模式解决分布式事務(AT、TCC、SAGA、XA)
- The sixth training assignment
- 【OneNote】无法连接到网络,无法同步问题
- QT document
- China Southern Airlines pa3.1
- 1321: [example 6.3] deletion problem (noip1994)
- 【推荐系统 01】Rechub
- [actual combat] transformer architecture of the major medical segmentation challenges on the list --nnformer
- CSAPP bomb lab parsing
- Is the soft test intermediate useful??
猜你喜欢

Network engineer test questions and answers in May of the first half of 2022

BUUCTF---Reverse---reverse1

【推薦系統 01】Rechub
![[untitled]](/img/15/3db921703147afdf58dfffe532a19b.jpg)
[untitled]

PHP \ newline cannot be output

2022年7月10日“五心公益”活动通知+报名入口(二维码)
![1321: [example 6.3] deletion problem (noip1994)](/img/bd/b605ec7b901079a9ebaca446fad7fb.png)
1321: [example 6.3] deletion problem (noip1994)

How to prepare for the advanced soft test (network planning designer)?
![[système recommandé 01] rechub](/img/92/c14c867247d3a042c69b5ed0091fbe.png)
[système recommandé 01] rechub

IDEA快捷键大全
随机推荐
[recommendation system 02] deepfm, youtubednn, DSSM, MMOE
Get pictures through opencv, change channels and save them
【推荐系统 02】DeepFM、YoutubeDNN、DSSM、MMOE
软考中级有用吗??
请问申购新股哪个证券公司开户是最好最安全的
软考中级电子商务师含金量高嘛?
Applet jump to H5, configure business domain name experience tutorial
How to play video on unityui
Gym installation pit records
Ffmpeg record a video command from RTSP
2022.7.3DAY595
Go Slice 比较
uniapp 在onLaunch中跳转页面后,点击事件失效解决方法
[untitled]
[pro test feasible] error while loading shared libraries solution
POJ1821 Fence 题解报告
ADB utility commands (network package, log, tuning related)
A case of compiling QT file qmake compiling script
Unity script generates configurable files and loads
Typescript interface inheritance