AlgoMaster Logo

Exercise: Timeouts, Retries, and Backoff

Last Updated: June 6, 2026

1 min read

Exercise 1: Exponential Backoff

Write the retry logic. The payment service is wired to time out twice and then succeed, and the backoff is the deterministic part you can test, so this exercise uses the doubling schedule without the random jitter a real client would add on top.

Premium Content

Subscribe to unlock full access to this content and more premium articles.