Build a Retry Wrapper for Flaky Client ERP Integration Calls

Last updated: November 29, 2026

Quick Overview

Implement a reusable function that calls an integration endpoint (for example a client's SAP or Salesforce API) and retries transient failures with capped exponential backoff and jitter, honoring server Retry-After hints and never retrying non-transient errors.

Accenture
Software Engineering Fundamentals
Software Engineer
Accenture
November 29, 2026
Software Engineer
Technical Screen
Software Engineering Fundamentals
Medium

0

0

0 solved


Implement a reusable function that calls an integration endpoint (for example a client's SAP or Salesforce API) and retries transient failures with capped exponential backoff and jitter, honoring server Retry-After hints and never retrying non-transient errors.

Much Accenture delivery work is integration between new cloud services and a client's systems of record, which rate-limit and fail intermittently. The interviewer checks that the candidate separates transient from permanent errors, avoids retry storms, and thinks about idempotency, not just loop syntax.

What the Interviewer Expects
  • Distinguishes retryable errors (timeouts, 429, 503) from permanent ones (400, 401)
  • Uses exponential backoff with a cap and full jitter
  • Honors a Retry-After hint when the server provides one
  • Makes sleep and randomness injectable for unit tests
  • Raises the original error after the final attempt
  • Raises idempotency concerns for non-GET calls
Key Topics to Cover
Exponential backoff
Jitter
Idempotency keys
Error classification
Testability
Circuit breakers
How to Approach This
  1. Apply SOLID principles. Single Responsibility makes code testable, Open/Closed makes it extensible.
  2. Choose data structures based on access patterns, not familiarity.
  3. Prefer immutable data and message passing over shared mutable state for concurrency.
  4. Design APIs with RESTful conventions, versioning, meaningful errors, and pagination from day one.
Possible Follow-up Questions
  • How do you make a retried 'create purchase order' call safe against duplicates?
  • When would you add a circuit breaker on top of retries?
  • How would you share a retry budget across many worker processes hitting the same client API?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Wrap any zero-argument callable. Retry only exceptions in retry_on. Up to max_attempts total attempts. Delay grows as base * 2^(attempt-1), capped at cap, with full jitter so many clients do n...

High-Level Design

A small loop around fn(). Classification lives in the exception types, so the HTTP adapter maps status codes to RetryableError or a permanent error. sleep and rng are parameters so tests run i...


Submit Your Answer
Markdown supported

Related Questions