当前位置:网站首页>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
边栏推荐
- When do you usually get grades in the soft exam? Online pedaling?
- Wallhaven壁纸桌面版
- Which securities company is the best and safest to open an account for the subscription of new shares
- Unity websocket client
- How much review time does it usually take to take the intermediate soft exam?
- “梦想杯”2017 年江苏省信息与未来小学生夏令营 IT 小能手 PK 之程序设计试题
- 高级软考(网络规划设计师)该如何备考?
- SQL Server 知识汇集11 : 约束
- ArrayList thread insecurity and Solutions
- 單調性約束與反單調性約束的區別 monotonicity and anti-monotonicity constraint
猜你喜欢
"Dream Cup" 2017 Jiangsu information and future primary school summer camp it expert PK program design questions
2021-05-21
[untitled]
What does intermediate software evaluator test
How to prepare for the advanced soft test (network planning designer)?
2022年上半年5月网络工程师试题及答案
[recommendation system 02] deepfm, youtubednn, DSSM, MMOE
Find the root of equation ax^2+bx+c=0 (C language)
BUUCTF---Reverse---reverse1
PHP \ newline cannot be output
随机推荐
Monai version has been updated to 0.9. See what new functions it has
Transaction rolled back because it has been marked as rollback-only解决
What are the contents of the intermediate soft test, the software designer test, and the test outline?
ArrayList thread insecurity and Solutions
香橙派OrangePi 4 LTS开发板通过Mini PCIE连接SATA硬盘的操作方法
Galaxy Kirin desktop operating system installation postgresql13 (source code installation)
[OneNote] can't connect to the network and can't sync the problem
[untitled]
Unity downloads files through the server address
JSON format query of MySQL
Applet jump to H5, configure business domain name experience tutorial
Laya common script commands
Cmake learning manual
PR Lecture Notes
1324: [example 6.6] integer interval
Get pictures through opencv, change channels and save them
ADB utility commands (network package, log, tuning related)
IDEA快捷键大全
[untitled]
Cluster task scheduling system lsf/sge/slurm/pbs based on HPC scenario