QuestionQ94

VerifiedKnowledge Integration and Data Handling

You are developing a customer-support chatbot that retrieves user account data from an external billing API. During testing, the API occasionally returns timeouts or 500 errors. You want the agent to be resilient by retrying when appropriate while failing gracefully when the service is unavailable.

Which strategy best manages intermittent API-call failures while still providing a good user experience?

Explanation

Exponential-backoff retries are appropriate for transient failures such as timeouts and many 500-level errors because they reduce repeated load on a struggling dependency. A circuit breaker stops further calls when failures indicate the service is unhealthy, and a clear final message gives the user a graceful outcome when recovery attempts are exhausted.

Community Discussion

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