当前位置:网站首页>Openfeign timeout setting
Openfeign timeout setting
2022-04-23 03:02:00 【Leon_ Jinhai_ Sun】
# 0. Timeout description
- By default ,openFiegn When making a service call , The time required for the service provider to process business logic must be 1S Back inside , If exceeded 1S If there is no return, then OpenFeign Will report an error directly , Will not wait for the service to execute , But often when dealing with complex business logic, it may exceed 1S, So it needs to be modified OpenFeign The default service call timeout for .
- The following error occurs when the call times out :
# 1. Simulation timeout
- The service provider joins the thread and waits for blocking
# 2. Make client calls
# 3. modify OpenFeign Default timeout
feign.client.config.PRODUCTS.connectTimeout=5000 # Configure the specified service connection timeout
feign.client.config.PRODUCTS.readTimeout=5000 # Configure the specified service wait timeout
#feign.client.config.default.connectTimeout=5000 # Configure all service connection timeouts
#feign.client.config.default.readTimeout=5000 # Configure all services to wait for timeout
版权声明
本文为[Leon_ Jinhai_ Sun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220633251870.html
边栏推荐
- Huawei machine test question -- deformation of hj53 Yang Hui triangle
- Niuke white moon race 6 [solution]
- Er and eer models
- Chapter IV project cost management of information system project manager summary
- Plug in for vscode
- Navicat failed to connect to Oracle Database: cannot load OCI DLL, 87: instant client package is
- 最通俗易懂的依赖注入之服务容器与作用域
- Chapter VII project communication management of information system project manager summary
- 微软是如何解决 PC 端程序多开问题的——内部实现
- ele之Table表格的封装
猜你喜欢
Golden nine silver ten interview season, you are welcome to take away the interview questions (with detailed answer analysis)
Shell script learning notes - regular expressions
Sonic cloud real machine tutorial
Assembly learning Chapter III of assembly language (Third Edition) written by Wang Shuang
tf. keras. layers. Density function
Dynamic sequence table + OJ
Opencv fills the rectangle with a transparent color
Depth deterministic strategy gradient (ddpg)
JS learning notes
Encapsulate components such as pull-down menu based on ele
随机推荐
Development notes of raspberry pie (12): start Advantech industrial control raspberry pie uno-220 Kit (I): introduction and operation of the system
When using art template inheritance, compileerror: invalid or unexpected token generated
MySQL complex query uses temporary table / with as (similar to table variable)
《信息系统项目管理师总结》第六章 项目人力资源管理
Solve the problem that PowerShell mining occupies 100% of cpu7 in win7
Traversal of l2-006 tree (middle and later order determination binary tree & sequence traversal)
OCR recognition PDF file
Linux redis - redis ha sentinel cluster construction details & redis master-slave deployment
The way to conquer C language
HLS / chisel uses CORDIC hyperbolic system to realize square root calculation
Linux redis - redis database caching service
对.NET未来的一点感悟
C# 11 的这个新特性,我愿称之最强!
Some problems encountered in setting Django pure interface, channel and MySQL on the pagoda panel
Classification of technology selection (2022)
Opencv reads webcam video and saves it locally
[learn junit5 from official documents] [II] [writingtests] [learning notes]
基于多态的职工管理系统源码与一些理解
How to count the number of all files in a directory under win10 system
Log4j knowledge point record