当前位置:网站首页>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
边栏推荐
- [leetcode sword finger offer 28. Symmetric binary tree (simple)]
- Database experiment VI integrity language experiment
- Centos7 builds MySQL master-slave replication from scratch (avoid stepping on the pit)
- MySQL 回表
- C# ftpHelper
- JS to get the browser and screen height
- DW basic tutorial (I)
- [SDU chart team - core] enumeration of SVG attribute class design
- [leetcode refers to offer 18. Delete the node of the linked list (simple)]
- 2.整理华子面经--2
猜你喜欢

在线时序流程图制作工具

DW basic tutorial (I)

Database Experiment four View experiment

SSH in win10

Database experiment I database definition and data import
![[leetcode refers to offer 18. Delete the node of the linked list (simple)]](/img/ee/1a546e2383948ad9a4ce69b4508e90.png)
[leetcode refers to offer 18. Delete the node of the linked list (simple)]

Deep understanding of modern mobile GPU (continuously updating)

延时消息常见实现方案

JS merge duplicate data in array object

Correction of date conversion format error after Oracle adds a row total
随机推荐
JS merge duplicate data in array object
Database Experiment 2 data query
presto on spark 支持3.1.3记录
[leetcode sword finger offer 58 - I. flip word order (simple)]
[leetcode refers to offer 21. Adjust the array order so that odd numbers precede even numbers (simple)]
Lightweight project management ideas
[leetcode sword finger offer 28. Symmetric binary tree (simple)]
A method of asynchronous response of application service through load balancing
JS to get the browser and screen height
2022-04-24日報:在生物科學領域應用深度學習的當前進展和開放挑戰
Ensuring the quality of living materials and food safety in Shanghai
阿里又一个“逆天”容器框架!这本Kubernetes进阶手册简直太全了
Common scenes of vector product in image
C# ftpHelper
1.整理华子面经--1
Presto on spark supports 3.1.3 records
[leetcode sword finger offer 10 - II. Frog jumping steps (simple)]
Centos7 builds MySQL master-slave replication from scratch (avoid stepping on the pit)
Hystrix简介和服务端熔断的实现
LabVIEW修改应用程序窗口外观