SpinTheMic
Pro

Interview practice question

Designing a reusable retry utility

Backend Engineering · OOP and Design Patterns · Experienced

Several teams want a shared retry helper for calling external services. How would you design its API?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Configurable policy: attempts, backoff, jitter, max time.
  • Retry predicate (which errors).
  • Composable with timeouts, circuit breakers.
  • Hooks for metrics and logging.
  • Safe defaults; immutable config.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics