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, 2937🔥, 0💬
Popular Posts:
How to read RSS validation errors at w3.org? If your RSS feed has errors, the RSS validator at w3.or...
How to build a PHP script to dump Azure AD 2.0 Authentication Response? If you are use the Azure-AD-...
What is EPUB 3.0 Metadata "dcterms:modified" property? EPUB 3.0 Metadata "dcterms:modified" is a req...
How to register and get an application ID from Azure AD? The first step to use Azure AD is to regist...
What is test testing area for? The testing area is provided to allow visitors to post testing commen...