Until Successful Scope & Resiliency โ Interview Questions & Scenarios (2026)
Retry frequency, exponential backoff, exhausted retry handling, and reconnection strategies.
โณ Until Successful Scope & Resiliency
Retry frequency, exponential backoff, exhausted retry handling, and reconnection strategies.
What is Until Successful? When do you use it?
Until Successful retries the processors inside it until they succeed or until the max retries count is
reached. Use for transient failures โ network blips, temporary backend unavailability.
Until Successful โ Retry SAP call 3 times
maxRetries : Number of retry attempts (default: 5). Does NOT include the initial attempt.
millisBetweenRetries : Wait time between retries (default: 60000ms = 1 minute)
On exhaustion: throws MULE:RETRY_EXHAUSTED โ catch in error handler
๐ฌ CROSS-QUESTIONS INTERVIEWERS ASK ABOUT THIS TOPIC
"You set maxRetries=3 โ how many total attempts happen?" โ 4 total. maxRetries counts retries
AFTER the initial attempt. 1 initial + 3 retries = 4 total. Common interview trap โ many say "3 attempts."
"Does Until Successful support exponential backoff?" โ No built-in exponential backoff.
millisBetweenRetries is a fixed delay between every retry. To implement exponential backoff you'd need a
custom pattern (set a variable that doubles the delay). The reconnection strategy on connectors has
exponential backoff โ Until Successful does not.
"Should you use Until Successful to retry a 400 Bad Request from SAP?" โ No. 400 is a client error โ
the request itself is wrong. Retrying the same request will always get the same 400. Only retry transient
errors: 5xx, timeouts, connectivity failures. Add a condition to skip non-retryable errors: wrap in Try scope
and only re-throw 5xx errors.
"What is the default millisBetweenRetries?" โ 60,000ms (1 minute). The default means 5 retries ร 1
minute = 5 minutes before exhaustion. In production we always override this to a shorter value (5000ms)
for fast-fail behavior.
Project: Energy & Utility โ External Payment Gateway Connector.
Problem: Intermittent 200ms network glitches on third-party payment partner endpoints caused 4% of customer checkout requests to fail immediately.
What I Did: Wrapped the HTTP Request in an Until Successful scope configured with 3 retries, a 2000ms delay, and exponential backoff, failing over to a DLQ on exhaustion.
Result: Automatically self-healed 99.4% of transient failure attempts without customer impact, saving approximately 1,200 orders per week.
What happens when Until Successful exhausts all retries?
When all retries are exhausted, Until Successful throws MULE:RETRY_EXHAUSTED . This error bubbles up
to the flow's error handler (or the enclosing scope's error handler).
In our Enterprise Architecture: we catch MULE:RETRY_EXHAUSTED in the flow error handler โ update Salesforce with
SAP_Error_Status__c = 'FAILED' โ send Anypoint Alert to operations team โ publish failed message
to DLQ for manual reprocessing.
Project: Retail & E-Commerce โ External Payment Gateway Connector.
Problem: Intermittent 200ms network glitches on third-party payment partner endpoints caused 4% of customer checkout requests to fail immediately.
What I Did: Wrapped the HTTP Request in an Until Successful scope configured with 3 retries, a 2000ms delay, and exponential backoff, failing over to a DLQ on exhaustion.
Result: Automatically self-healed 99.4% of transient failure attempts without customer impact, saving approximately 1,200 orders per week.
Until Successful vs reconnection strategy โ what is the difference?
| ASPECT | UNTIL SUCCESSFUL | RECONNECTION STRATEGY |
|---|---|---|
| What it retries | Any processor inside it (HTTP requests, DB calls, transforms) | Only connector connection establishment |
| Configured in | Flow โ wraps processors | Connector config (global.xml) |
| Use for | Transient business logic failures, API errors | Network reconnect on startup or after disconnect |
| Error type | Any error โ HTTP 5xx, timeouts, etc. | CONNECTIVITY errors only |
Project: Commercial Banking โ External Payment Gateway Connector.
Problem: Intermittent 200ms network glitches on third-party payment partner endpoints caused 4% of customer checkout requests to fail immediately.
What I Did: Wrapped the HTTP Request in an Until Successful scope configured with 3 retries, a 2000ms delay, and exponential backoff, failing over to a DLQ on exhaustion.
Result: Automatically self-healed 99.4% of transient failure attempts without customer impact, saving approximately 1,200 orders per week.