当前位置:网站首页>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边栏推荐
- 请问申购新股哪个证券公司开户是最好最安全的
- Monai version has been updated to 0.9. See what new functions it has
- July 10, 2022 "five heart public welfare" activity notice + registration entry (two-dimensional code)
- Seata 1.3.0 four modes to solve distributed transactions (at, TCC, Saga, XA)
- Différences entre les contraintes monotones et anti - monotones
- 打算参加安全方面工作,信息安全工程师怎么样,软考考试需要怎么准备?
- [untitled]
- 想考中级软考,一般需要多少复习时间?
- 1321: [example 6.3] deletion problem (noip1994)
- When do you usually get grades in the soft exam? Online pedaling?
猜你喜欢

Monai version has been updated to 0.9. See what new functions it has

【安装系统】U盘安装系统教程,使用UltraISO制作U盘启动盘

2021-04-08
![[OneNote] can't connect to the network and can't sync the problem](/img/28/9a02b1da0f43889989a9539c9fb6b6.png)
[OneNote] can't connect to the network and can't sync the problem
![1323: [example 6.5] activity selection](/img/2e/ba74f1c56b8a180399e5d3172c7b6d.png)
1323: [example 6.5] activity selection

软考一般什么时候出成绩呢?在线蹬?

2021 summary and 2022 outlook

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

Différences entre les contraintes monotones et anti - monotones

软考中级有用吗??
随机推荐
书签整理-程序员常用网站导航
Laya common script commands
Find the root of equation ax^2+bx+c=0 (C language)
2022.7.6DAY598
高级软考(网络规划设计师)该如何备考?
2022年上半年5月网络工程师试题及答案
Typescript interface inheritance
IDEA快捷键大全
[untitled]
Unity websocket server
[untitled]
【C#】WinForm运行缩放(变糊)的解决方法
[pyqt] the cellwidget in tablewidget uses signal and slot mechanism
How to prepare for the advanced soft test (network planning designer)?
[STM32] actual combat 3.1 - drive 42 stepper motors with STM32 and tb6600 drivers (I)
How much review time does it usually take to take the intermediate soft exam?
从色情直播到直播电商
Go-Redis 中间件
中级软件评测师考什么
滚动踩坑--UNI_APP(八)