Check target endpoint timeout

Not applicable

Is there a way to check the target endpoint timeout in the post flow. Basically I want my proxy api to respond with a specific message, if target endpoint does not respond in a specific period of time.

Solved Solved
0 1 685
1 ACCEPTED SOLUTION

Not applicable

There is no out of the box policy to do this. However, you may be able to do this using Javascript by setting a variable before your callout to the backend service and after the backend service is complete via Date().getTime(). Subtracting the two should give you the latency in milliseconds and you can act accordingly.

View solution in original post

1 REPLY 1

Not applicable

There is no out of the box policy to do this. However, you may be able to do this using Javascript by setting a variable before your callout to the backend service and after the backend service is complete via Date().getTime(). Subtracting the two should give you the latency in milliseconds and you can act accordingly.