'wait' Policy Statement


How to use the "wait" Policy statement to make multi-threading calls for an Azure API service operation?

✍: FYIcenter.com


The "wait" Policy Statement allows you to make multi-threading calls to external systems.

The "wait" statement has the following syntax:

<wait for="all|any"> 
    <send-request .../>
    <send-request .../>

If for="any" is specified, the "wait" statement ends if any one of the child calls ends.

If for="all" is specified, the "wait" statement ends if all child calls end.

For example, the following policy makes two web service calls simultaneously and waits for both of them to finish:

<wait for="all">
  <send-request mode="new" response-variable-name="response1">  
  <send-request mode="new" response-variable-name="response2">  


'set-status' Policy Statement

'send-one-way-request' Policy Statement

Policy to Control Backend Service

⇑⇑ Microsoft Azure API Management Tutorials

2018-01-13, 1442🔥, 0💬