These are chat archives for spring-cloud/spring-cloud

12th
Feb 2019
Archimedes Trajano
@trajano
Feb 12 02:38
Hopefully this question is simple: I have a class that looks like this
    @Data
    public static class RefreshRequest {
        private String refresh_token;
        private String grant_type;
    }
how do I use camelCase but make it use the underscore versions of the data
public OAuthTokenResponse refresh(@RequestHeader(HttpHeaders.AUTHORIZATION) final String authorization,
                                      @ModelAttribute RefreshRequest request) {
...
}
Srini555
@Srini555
Feb 12 03:58
I implementing Spring boot microservices, we have around 100+ microservices as well we have zuul+Ribbon Hystrix gateway. Among 100+ services, few services facing gatewaytime out dueto big request payload. So I am trying to come with solution to make those calls as asynchronous then issue will be out.
I need your valuable answers
Archimedes Trajano
@trajano
Feb 12 05:04
Are you using Docker containers for the microservices?
Bruce Zhang
@niyaode
Feb 12 05:18
I am configuring spring-security-oauth SSO, and the client will redirect to the authorization server for authorization without login.After successful authorization with the authorization code to return to the client /login path.But there was a 401 (k).Here's my code
TIM截图20190212130406.png
Bruce Zhang
@niyaode
Feb 12 05:44
@trajano Could you help me look at the problem
Archimedes Trajano
@trajano
Feb 12 05:44
I don't use it sorry, I actually wrote my own security framework because I needed something simpler.
Bruce Zhang
@niyaode
Feb 12 05:46
ok
Marcos Barbero
@marcosbarbero
Feb 12 12:03
@niyaode you will probably get more help if you use the #spring-security-oauth channel
Robert Wiesner
@rowi1de
Feb 12 13:25
How can I configure a Feign Client if also feign-httpclient is used?
Will FeignClientProperties still work or only FeignHttpClientProperties ?
Juan Antonio Breña Moral
@jabrena
Feb 12 13:56
Good afternoon, I have a question about LoadBalancerExchangeFilterFunction for Webflux. The usage is similar to Ribbon: https://spring.io/guides/gs/client-side-load-balancing/
?
Juan Antonio Breña Moral
@jabrena
Feb 12 14:28
My question is about, how to define multiple address or IPs
Spencer Gibb
@spencergibb
Feb 12 15:54
@jabrena yes it is. After that it's the same configuring ribbon or integrating discovery with ribbon (eureka, consul etc...)
Juan Antonio Breña Moral
@jabrena
Feb 12 16:15
Many thanks @spencergibb, I will do a test with the idea:
java say-hello: ribbon: eureka: enabled: false listOfServers: localhost:8090,localhost:9092,localhost:9999 ServerListRefreshInterval: 15000
Archimedes Trajano
@trajano
Feb 12 16:18
@jabrena are you using the microservices in a docker environment eventually?
Juan Antonio Breña Moral
@jabrena
Feb 12 16:24
in some cases yes and in others without docker images
why?
Archimedes Trajano
@trajano
Feb 12 16:37
@jabrena just comparing with how I'm setting mine up. We decided not to use "ribbon" and "eureka" for our architecture. Instead we relied on Docker Swarm to manage it for us (I think Kube has similar too)
Because Swarm already does load balancing and service discovery by way of hostname==servicename provided to the swarm.
The main gap we had was the lack of a Docker Swarm Discovery Client from Cloud Gateway but I fixed that problem by creating my own. The fallback plan was to use Traefik as another layer which provides docker service labels to choose which services are to be exposed.
Juan Antonio Breña Moral
@jabrena
Feb 12 17:06
Yep, good tip.
But in non cloud scenarios, ribbon/hystrix is useful.
In my case, I am reviewing the features in Webflux. Many thanks for the advice :)
Archimedes Trajano
@trajano
Feb 12 17:07
@jabrena i'm not discounting that :) We originally were thinking about it but decided to just drop it.
One major gotcha I kept on hitting with webflux is you cannot mix reactive and non-reactive (e.g. calling block())in the same thread.