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

29th
Nov 2018
Ali Akbar Azizkhani
@azizkhani
Nov 29 2018 08:15
@OlgaMaciaszek yes i get this exception more often . i think is relate to zuul
Sourabh Sharma
@sharmasourabh
Nov 29 2018 08:40
Does Spring Cloud Gateway provide basic request validation like Amazon API Gateway or any plan?
冯文议
@fengwenyi
Nov 29 2018 08:42
hello! spring-cloud-starter-gateway how get client ip
Anthony
@Yneth
Nov 29 2018 09:10
guys, is it possible to use webflux router without the use of async API?
I need to create engine for endpoint generation in spring

and webflux router has a convenient API for such task
but it seems like it works only with non blocking stuff
correct me if I am wrong

or it is better to create own API wrapping custom controller registration?

Olga Maciaszek-Sharma
@OlgaMaciaszek
Nov 29 2018 12:09
@azizkhani I don't think it is caused by Zuul itself, but if you provide a code sample that reproduces the issue (https://stackoverflow.com/help/mcve), I can have a look at it for you
Olga Maciaszek-Sharma
@OlgaMaciaszek
Nov 29 2018 12:28
@pradeepkusingh if renewals are above the threshold, it should not enter the self-preservation mode; can you have a look at the Spring Eureka console and check what appears under renewals threshold and renewals (last minute) when the issue occurs?
@Yneth by "webflux router" do you mean Spring Cloud Gateway?
Anthony
@Yneth
Nov 29 2018 12:29

@OlgaMaciaszek nope, I meant spring webflux router
seems like it is a wrong chat

but I did not find any other room designated to spring 5 webflux

Olga Maciaszek-Sharma
@OlgaMaciaszek
Nov 29 2018 12:39
@Yneth I assume you mean webflux's RouterFunctions then; this is a wrong channel indeed - this is only for Spring Cloud related issues; the RouterFunctions will only work with the reactive WebFlux web framework, though
Anthony
@Yneth
Nov 29 2018 12:40
@OlgaMaciaszek this is exactly what I am issuing
I need this RouterFunction but not in reactive environment
could you recommend any other channel where I can discuss this problem?
Olga Maciaszek-Sharma
@OlgaMaciaszek
Nov 29 2018 12:44
I'm not sure that there would be any sensible ways of using this API not in conjunction with the WebFlux framework; you should probably talk to the Spring Framework team members - not sure if they have a gitter channel - you should probably start with a question on StackOverflow, or connect via Spring Framework GitHub
Anthony
@Yneth
Nov 29 2018 12:44
@OlgaMaciaszek thanks
Olga Maciaszek-Sharma
@OlgaMaciaszek
Nov 29 2018 12:48
Hello @sharmasourabh Gateway operates based on 2 main pradigms - predicates - that allow you to filter out the requests to which you want to apply filters and then the filters themselves that allow you to tranform these requests before passing them on; so if you want to only handle requsts that match some conditions, you could use predicates to do that ( the descriptions of currently available predicates and filters are all in the docs: https://cloud.spring.io/spring-cloud-static/spring-cloud-gateway/2.1.0.M3/single/spring-cloud-gateway.html#gateway-request-predicates-factories ); see if that suits your needs or provide a specific example for us to verify
hello @fengwenyi either you have to provide the url to which the requests should be sent in your gateway config or gateway can use Spring Cloud LoadBalancerClient to retrieve the host address by service name from ServiceDiscovery - you can find more on that in the LoadBalancerClient Filter section in gateway docs (https://cloud.spring.io/spring-cloud-static/spring-cloud-gateway/2.1.0.M3/single/spring-cloud-gateway.html)
Onur SALK
@osalkk
Nov 29 2018 13:20
Hi, where can we find Dockerfile for spring cloud data flow apps like docker:springcloudstream/rabbit‑source‑rabbit:1.3.0.RELEASE ?