These are chat archives for spring-cloud/spring-cloud
Throwableparameter on the fallback method but my attempts at getting that to work through Feign have been futile.. Any ideas?
hey, I got some special problem with a loadbalanced
RestTemplate, which is called during autoconfiguration. A cloud application is fetching JWT public key from a auth application, which is discoverable using eureka. The problem is, when this happens "to early", the loadbalancer fails with "no instaces of XXX available"...
if I add some more dependencies like hazelcast, synchronous liquibase or just a retryer on discovery client (dirty hard code stuff), than it works....I tried things like
@ConditionalOnBean("discoveryClient") or same with "loadBalancerClient", also with ConditionalOnClass...but this seems to be generally the wrong direction because it's not about beans wired, but services fetched....is there any clean approach to ask for token keys after discovery client wired AND fetched some services?
ResourceServerTokenServicesand defer/retry the key lookup
JwtAccessTokenConverterthen surely you control when and how often it fetches the key?
RestTemplate can be automatically configured to use ribbon
foo.MyFilterthat is a pre filter
POSTis going through Zuul to a service or is there another request after it goes through Zuul?
@ControllerAdviceerror handler that takes exception messages and returns a JSON object with a friendly message, so we're contemplating just checking for a
HystrixRuntimeExceptionand unwrapping as necessary. Thoughts?
@RefreshScope– the docs mention changing a datasource and waiting for connections to drain. I have never seen a spring app recover gracefully from any sort of DB source issue. I.e. if the data source restarts, the service has to. In toying with refresh scope, the same rule has applied if I change the DB connection details