I am using Spring Cloud Brixton.M3 and Spring Boot 1.3.0.RELEASE. I'm kind of new to this (especially in Spring Cloud). I created a registry server (for example, an Eureka instance), a configuration server, and a gateway.
According to my requirement, I intercept every request that falls into the gateway in one of my filters to extract the necessary information from the header, and based on this, I throw an exception or forward / check this request with Feign Client. For some time, hystrix throw HystrixRuntimeException, when it could not contact the corresponding services or due to any other problems.
So I want:
- Provide a default backup method for each forwarding request so that I can read and process it accordingly.
- Global exception handling is different than
@ControllerAdvicesince I do not provide any custom @HystrixCommandand test calls for calls (AOP based solution?). - Is it possible to intercept every failed request and retry a certain number of times? Internally, this can happen, but can I redefine this functionality and handle every failed request
TimedOutException, either because of or because of the HttpConnectionPool exception?
- ? @RestController @HystrixCommand ? ( , , , , , )