当前位置:网站首页>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边栏推荐
- "Dream Cup" 2017 Jiangsu information and future primary school summer camp it expert PK program design questions
- 高级软考(网络规划设计师)该如何备考?
- 从色情直播到直播电商
- 1323: [example 6.5] activity selection
- 2021 summary and 2022 outlook
- 软考中级电子商务师含金量高嘛?
- [pro test feasible] error while loading shared libraries solution
- Compile QT project script with qmake
- 【安装系统】U盘安装系统教程,使用UltraISO制作U盘启动盘
- Unity script visualization about layout code
猜你喜欢

uniCloud

【亲测可行】error while loading shared libraries的解决方案

Transaction rolled back because it has been marked as rollback-only解决

China Southern Airlines pa3.1

软考一般什么时候出成绩呢?在线蹬?
![1324: [example 6.6] integer interval](/img/5d/29db4d51ec7a2685f8aeffe5be68da.png)
1324: [example 6.6] integer interval
![1321: [example 6.3] deletion problem (noip1994)](/img/bd/b605ec7b901079a9ebaca446fad7fb.png)
1321: [example 6.3] deletion problem (noip1994)

ADB utility commands (network package, log, tuning related)

P2788 math 1 - addition and subtraction

如何顺利通过下半年的高级系统架构设计师?
随机推荐
【C#】WinForm运行缩放(变糊)的解决方法
Ping tool ICMP message learning
【推薦系統 01】Rechub
Simple and easy to modify spring frame components
shardingsphere分库分表示例(逻辑表,真实表,绑定表,广播表,单表)
软考中级电子商务师含金量高嘛?
【PyTorch 07】 动手学深度学习——chapter_preliminaries/ndarray 习题动手版
單調性約束與反單調性約束的區別 monotonicity and anti-monotonicity constraint
seata 1.3.0 四种模式解决分布式事务(AT、TCC、SAGA、XA)
QT document
SQL Server 知识汇集11 : 约束
1323: [example 6.5] activity selection
Some online academic report websites and machine learning videos
Introduction to shell programming
What are the contents of the intermediate soft test, the software designer test, and the test outline?
[untitled]
无法打开内核设备“\\.\VMCIDev\VMX”: 操作成功完成。是否在安装 VMware Workstation 后重新引导? 模块“DevicePowerOn”启动失败。 未能启动虚拟机。
简单易修改的弹框组件
Records on the use of easyflash v3.3
软考信息处理技术员有哪些备考资料与方法?