mediumStudy question · answer published in JavaScript interview questions, so no pointsjavascriptasync-awaitresilience
Total wait with exponential backoff
A payment status call retries up to 3 times after the first failure, waiting 500 ms before the first retry and doubling each time. If every attempt fails, how long does the code spend waiting in total (ignoring request time)?
Discussion 0
Join free to post in the discussion.
Related questions
- Block scope of letFrontend Developer
- Loose vs strict equalityFrontend Developer
- Sync code runs before promise callbacksFrontend Developer
- typeof null and arraysFrontend Developer
- Changing a property of a const objectFrontend Developer
- Numbers saved in localStorageFrontend Developer
- What fetch does on a 404Frontend Developer
- Optional chaining on missing dataFrontend Developer