An API fails to respond, triggering a timeout exception. The best practice in this scenario would be to ________.

  • Crash the application and alert the user
  • Ignore the exception and continue processing
  • Log the exception for future analysis
  • Retry the API call
In the case of a timeout exception, a best practice is to retry the API call, as the failure might be temporary. Ignoring the exception may lead to incomplete processing, while logging it allows for future analysis. Crashing the application is not a recommended approach.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *