Target timeout elements
The target timeout policy includes several elements and attributes that define how the ION API Gateway handles response time from a target server.
The target timeout policy contains these key elements and attributes:
targetTimeout: The root element of the policy. It includes attributes such asversion,name,displayName, andenabledthat describe and activate the policy.timeout: Specifies the timeout value in milliseconds that the API Gateway uses. In the example, it is set to120000milliseconds (two minutes). You can set a value between60000milliseconds (one minute) and300000milliseconds (five minutes), depending on how long you want the Gateway to wait for a response.xmlns,xmlns:xsi, andxsi:schemaLocation: These attributes define XML namespaces and specify the location of the schema file. They ensure that the policy configuration is valid and correctly interpreted by the Gateway.
Adjusting the timeout value in this policy allows you to control how long the API Gateway waits for a response from the target server. A longer timeout is useful when requests require more time to process, but setting it too high can lead to inefficient resource usage or delayed error handling.