当前位置:网站首页>OpenFeign超时设置
OpenFeign超时设置
2022-04-23 21:57:00 【Leon_Jinhai_Sun】
# 0.超时说明
- 默认情况下,openFiegn在进行服务调用时,要求服务提供方处理业务逻辑时间必须在1S内返回,如果超过1S没有返回则OpenFeign会直接报错,不会等待服务执行,但是往往在处理复杂业务逻辑是可能会超过1S,因此需要修改OpenFeign的默认服务调用超时时间。
- 调用超时会出现如下错误:
# 1.模拟超时
- 服务提供方加入线程等待阻塞
# 2.进行客户端调用
# 3.修改OpenFeign默认超时时间
feign.client.config.PRODUCTS.connectTimeout=5000 #配置指定服务连接超时
feign.client.config.PRODUCTS.readTimeout=5000 #配置指定服务等待超时
#feign.client.config.default.connectTimeout=5000 #配置所有服务连接超时
#feign.client.config.default.readTimeout=5000 #配置所有服务等待超时
版权声明
本文为[Leon_Jinhai_Sun]所创,转载请带上原文链接,感谢
https://blog.csdn.net/leon_jinhai_sun/article/details/124333669
边栏推荐
- Amazon and epic will be settled, and the Microsoft application mall will be opened to third parties
- JS merge duplicate data in array object
- April 24, 2022 Daily: current progress and open challenges of applying deep learning in the field of Bioscience
- Detectron2 usage model
- IIS cannot load * woff,*. woff2,*. Solution of SVG file
- YOLOv5 Unable to find a valid cuDNN algorithm to run convolution
- Introduction to tensorrt
- Daily operation and maintenance knowledge -- 1
- A method of asynchronous response of application service through load balancing
猜你喜欢
LabVIEW修改应用程序窗口外观
Centos7 builds MySQL master-slave replication from scratch (avoid stepping on the pit)
Based on jsplumb JS to achieve multi list one to many connection effect
Oracle updates the data of different table structures and fields to another table, and then inserts it into the new table
ROS learning notes - tutorial on the use of ROS
[leetcode refers to offer 22. The penultimate node in the linked list (simple)]
DW basic tutorial (I)
Sharpness difference (SD) calculation method of image reconstruction and generation domain index
C# ftpHelper
Code cloud download history version process
随机推荐
2022 - 04 - 24 Daily: Current Progress and Open Challenges of Applied Deep Learning in Biological Sciences
Idea import a project
Presto on spark supports 3.1.3 records
Common scenes of vector product in image
【SDU Chart Team - Core】SVG属性类设计之枚举
Plato farm is one of the four largest online IEOS in metauniverse, and the transaction on the chain is quite high
Leaf Smecta
Database Experiment 2 data query
What if Jenkins forgot his password
ubutnu20安裝CenterNet
清华大学 | WebFace260M:百万级深度人脸识别的基准(TPAMI2022)
Problem brushing plan -- dynamic programming (III)
[※ leetcode refers to offer 32 - II. Print binary tree II from top to bottom (simple)]
Centos7 builds MySQL master-slave replication from scratch (avoid stepping on the pit)
Subcontracting of wechat applet based on uni app
21. Basic usage of MariaDB
Database experiment VI integrity language experiment
SSH in win10
ERP function_ Financial management_ Basic concepts of Finance
Sharpness difference (SD) calculation method of image reconstruction and generation domain index