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

28th
Jul 2017
Karthik Mahadeva Iyer
@alwaysastudent
Jul 28 2017 02:53

There's the new gateway project; Nothing else I can think of in that category

@dsyer - I saw that, it is helpful as an edge proxy service. But I am looking for a way to have these headers flow through the downstream services in the request call stack. ie. client -> gateway -> a-service -> b-service ->c-service

Marcin Grzejszczak
@marcingrzejszczak
Jul 28 2017 05:11
You can use sleuth and baggage
Dave Syer
@dsyer
Jul 28 2017 06:22
@alwaysastudent did you look at the 1.0.0 bits of gateway. It has an MVC module that lets you manipulate the headers as they pass through.
Karthik Mahadeva Iyer
@alwaysastudent
Jul 28 2017 06:49
Sorry, is the ProxyExchange an abstraction around RestTemplatewith header propagation ? Seems like this is exactly I want. Brilliant. Let me get back to you after trying this out. Will service discovery, ribbon, feign support be also there in future ?
Dave Syer
@dsyer
Jul 28 2017 07:04
I think you can inject a RestTemplate can't you?
You'd have to write your own @Bean for ProxyExchangeArgumentResolver I think.
Karthik Mahadeva Iyer
@alwaysastudent
Jul 28 2017 07:06
Seems like set up with RestTemplateBuilder by default on the ProxyResponseAutoConfiguration
Dave Syer
@dsyer
Jul 28 2017 07:06
Open an issue if you want it to be more flexible.
I think it's important to set the error handler and the message converters.
Karthik Mahadeva Iyer
@alwaysastudent
Jul 28 2017 07:07
Yeah sure. I think it would help and organically give the service discovery, ribbon and sleuth
Dave Syer
@dsyer
Jul 28 2017 07:07
So we'll need to be careful
Karthik Mahadeva Iyer
@alwaysastudent
Jul 28 2017 07:09
I missed oauth2 as well
Then we can inject an oauth2resttemplate as well
Any plans to add Feign based proxy exchange as well ? Like just thinking of some annotation on a feign client makes it behave like this proxy exchange.
Israel Fernández
@iferca
Jul 28 2017 10:27
Is there in spring 5 a way to create a @LoadBalaced request with Ribbon using Netty? I'm more and more using Netty pot http request but thinking there might be still some "gaps" compared with restTemplate facilities
James Howe
@OrangeDog
Jul 28 2017 10:27
Same way as in Spring 4 presumably
Israel Fernández
@iferca
Jul 28 2017 10:29
I'm looking for migrating the code that relay in restTemplate and this is configured with the annotation. Not sure how to do it in such a simple way using Netty
James Howe
@OrangeDog
Jul 28 2017 10:30
You'll need to provide an AbstractLoadBalancingClient that uses Netty
Israel Fernández
@iferca
Jul 28 2017 10:31
OK I see, thanks, I'll look more on that.
Is there any
James Howe
@OrangeDog
Jul 28 2017 10:31
com.netflix.ribbon.transport.netty.http.LoadBalancingHttpClient
should all be covered in the Ribbon documentation
Israel Fernández
@iferca
Jul 28 2017 10:33
Is there any reactive substitute for restTemplate in plan that you guys know about?
Dave Syer
@dsyer
Jul 28 2017 10:33
There's WebClient
But we don't have any support for load balancing with WebClient in Spring Cloud yet
You could contribute it, if you wanted.
Israel Fernández
@iferca
Jul 28 2017 10:35
OK will look more into it thanks. Let's see how far I can get