当前位置:网站首页>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
BaseResp
Custom 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 four modes to solve distributed transactions (at, TCC, Saga, XA)
- 软考信息处理技术员有哪些备考资料与方法?
- [untitled]
- SQL Server knowledge gathering 9: modifying data
- 软考中级,软件设计师考试那些内容,考试大纲什么的?
- Mpx 插件
- PHP \ newline cannot be output
- Which securities company is the best and safest to open an account for the subscription of new shares
- 想考中级软考,一般需要多少复习时间?
- 【PyTorch 07】 动手学深度学习——chapter_preliminaries/ndarray 习题动手版
猜你喜欢
【STM32】实战3.1—用STM32与TB6600驱动器驱动42步进电机(一)
Seata 1.3.0 four modes to solve distributed transactions (at, TCC, Saga, XA)
China Southern Airlines pa3.1
Unity script generates configurable files and loads
Unity script visualization about layout code
1324: [example 6.6] integer interval
Use load_ decathlon_ Datalist (Monai) fast loading JSON data
Network engineer test questions and answers in May of the first half of 2022
Deep understanding of Apache Hudi asynchronous indexing mechanism
Static semantic check of clang tidy in cicd
随机推荐
Find the root of equation ax^2+bx+c=0 (C language)
seata 1.3.0 四種模式解决分布式事務(AT、TCC、SAGA、XA)
China Southern Airlines pa3.1
[untitled]
2022年7月10日“五心公益”活动通知+报名入口(二维码)
1324: [example 6.6] integer interval
Transaction rolled back because it has been marked as rollback-only解决
2022.7.4DAY596
【OneNote】无法连接到网络,无法同步问题
[untitled]
【STM32】实战3.1—用STM32与TB6600驱动器驱动42步进电机(一)
Deep understanding of Apache Hudi asynchronous indexing mechanism
Unable to open kernel device '\.\vmcidev\vmx': operation completed successfully. Reboot after installing vmware workstation? Module "devicepoweron" failed to start. Failed to start the virtual machine
Gym installation pit records
Simple and easy to modify spring frame components
简单易修改的弹框组件
Is the soft test intermediate useful??
CSAPP bomb lab parsing
Realize ray detection, drag the mouse to move the object and use the pulley to scale the object
Kitex 重试机制