The polling pattern
When invoking a long process with an HTTP connector, you might have faced issues to do with timeout. This is because the Logic Apps HTTP connector has a default expiry of two minutes and when the backend API does not respond within that time, the HTTP connector will throw a timeout exception. To control this behavior, we can implement a polling pattern through our external endpoint.
To work with the polling pattern in Logic Apps, the backend API should return the HTTP status code 202 (accepted) in the response header, along with a retry interval to the HTTP connector within two minutes. This will allow Logic Apps to poll specific API endpoints for response messages after the retry interval.
To replicate this polling scenario, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access