I have a few services which are behind Azure API Managment. When client send a request it looks like below:
Client -> Azure Api Managment -> Service A -> Service B
Sometimes Service B responses after 5min, but in the meantime Client gets 504 Gateway timeout. In Azure API Managment I set policy
<backend>
<forward-request timeout="300" />
</backend>
In documentation I saw below information, but if it is possible to set some settings for network infrastructure in the pipeline?
The amount of time in seconds to wait for the HTTP response headers to be returned by the backend service before a timeout error is raised. Minimum value is 0 seconds. Values greater than 240 seconds may not be honored as the underlying network infrastructure can drop idle connections after this time.