QuestionQ39

VerifiedImplement performant and reliable Mule applications

A Mule implementation uses an HTTP Request in an Until Successful scope to connect to an API.

How should a permanent error response such as HTTP:UNAUTHORIZED be handled within Until Successful to reduce latency?

Explanation

An On Error Continue handler in a Try scope handles HTTP:UNAUTHORIZED without propagating it, so the Try scope completes successfully from the perspective of the enclosing Until Successful scope. This avoids repeated synchronous retry attempts for a permanent authentication failure. On Error Propagate would rethrow the error, causing Until Successful to retry until its retry limit is exhausted.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!