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

3rd
Apr 2019
Max Barkley
@mbarkley
Apr 03 20:38
Hi, I am wondering if anyone has advice on how to enforce timeouts with retries in spring-cloud-gateway? My use-case is that I have a service I am proxying that has occasional slow responses. In those cases I want to timeout after ~1s and retry. I've tried using the RetryGatewayFilterFactory, but it doesn't enforce timeouts. Tried looking inside it to see if I could modify it, but I was a bit out of my depth. Any suggestions on other things to try are greatly appreciated :)
Dave
@dave-fl
Apr 03 20:52
@mbarkley You can enforce timeouts at the gateway level
but they are global.
You can set the timeout in your application properties/yaml