Learning on Web Dev Open is free for all.

Systems Thinking > Failure, deliberatelyRetries, timeouts, and giving up
Phase 03Failure, deliberately151 of 434

Retries, timeouts, and giving up

Wrap a flaky call with a budget rather than a loop, and find out how quickly a naive retry turns one outage into two.

Build45 minAI implements

Build this in your own editor

This one runs on your machine rather than in the browser workbench. Work to the outcomes below, then come back and mark it complete.

You should now be able to

  • Retry only what is safe to retry
  • Bound total time rather than attempt count
Ask the community

Loading…