'wait' Policy Statement
How to use the "wait" Policy statement to make multi-threading calls for an Azure API service operation?
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 .../> ... </wait>
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"> <set-url>http://dev.fyicenter.com/api/users/101</set-url> <set-method>GET</set-method> </send-request> <send-request mode="new" response-variable-name="response2"> <set-url>http://dev.fyicenter.com/api/orders/202</set-url> <set-method>GET</set-method> </send-request> </wait>
2018-01-13, 366👍, 0💬
How the Values Are Ordered in an Array in PHP? PHP says that an array is an ordered map. But how the...
How To Remove Slashes on Submitted Input Values in PHP? By default, when input values are submitted ...
FYIcenter JSON Validator and Formatter is an online tool that checks for syntax errors of JSON text ...
How Values in Arrays Are Indexed in PHP? Values in an array are all indexed their corresponding keys...
How To Use an Array as a Stack in PHP? A stack is a simple data structure that manages data elements...