Dynamic timeout for each api in spring eureka

314 Views Asked by At

I am facing timeout problem while downloading excel reports from my web application. The application is follows microservices archtecture build using spring-cloud. The Api timed out as i had set the ribbon timeout to

ribbon.ReadTimeout= 40000
ribbon.ConnectTimeout= 40000

Now if i increase the timeout in application.properties, then it will be reflected in entire application. I need different timeout for UI and downloading reports. Is there a way to set dynamic timeouts for different api's in spring cloud? Please guide

0

There are 0 best solutions below