Tools, FAQ, Tutorials:
'retry' Policy Statement
How to use the "retry" Policy statement to retry "forward-request" multiple times for an Azure API service operation?
✍: FYIcenter.com
The "retry" Policy Statement allows you to mainly execute
"forward-request" statement multiple times if it fails.
The "forward-request" Statement has the following syntax:
<retry
condition="boolean expression or literal"
count="number of retry attempts"
interval="retry interval in seconds"
max-interval="maximum retry interval in seconds"
delta="retry interval delta in seconds"
first-fast-retry="boolean expression or literal">
<forward-request timeout="60"/>
</retry>
In the following example request forwarding is retried up to ten times using exponential retry algorithm. Since first-fast-retry is set to false, all retry attempts are subject to the exponential retry algorithm.
<retry
condition="@(context.Response.StatusCode == 500)"
count="10"
interval="10"
max-interval="100"
delta="10"
first-fast-retry="false">
<forward-request />
</retry>
⇒ 'mock-response' Policy Statement
⇐ 'forward-request' Policy Statement
2018-01-16, ∼4782🔥, 0💬
Popular Posts:
How to use the "Ctrl-p Ctrl-q" sequence to detach console from the TTY terminal of container's runni...
How to use the "set-body" Policy Statement for an Azure API service operation? The "set-body" Policy...
What are "*..." and "**..." Wildcard Parameters in Function Definitions? If you want to define a fun...
How to use the "set-backend-service" Policy Statement for an Azure API service operation? The "set-b...
How to start Docker Daemon, "dockerd", on CentOS systems? If you have installed Docker on your CentO...