Home > Back-end >  Feign hystrix directly into the fusing how to solve???????
Feign hystrix directly into the fusing how to solve???????

Time:10-11

The configuration file has been configured with:
Feign:
Hystrix:
Enabled: true


Covers this because there are two, it is no use to write another way how to solve ah


Why I write this, enters directly a fuse???

CodePudding user response:

Why is this? I wrote it with others

CodePudding user response:

Complete error message

CodePudding user response:

Remove the fallback, error message to be typed,

CodePudding user response:

Fusing suggest in the service layer, rather than call interface,
Is a service of fusing,

CodePudding user response:

Normal access here may visit for the first time, would be the fallback method (this kind of phenomenon will not necessarily appear), because hystrix timeout mechanism, this can be configured to solve here provides three ways, as follows:
First: set the timeout time. Default is 1000 milliseconds
Hystrix.com mand. Default. Execution. The isolation. Thread. TimeoutInMilliseconds=5000

Second: don't set the timeout
Hystrix.com mand. Default. Execution. A timeout. Enabled=false

Third: direct disable
Feign. Hystrix. Enabled=false

CodePudding user response:

The same problem, I am the feign. Directly to the hystrix, enabled=false
  • Related