A module using top-level await becomes asynchronous, and every module importing it waits — transitively. It is genuinely useful for conditional imports and for initialisation that must complete…
Exponential backoff spreads a single client’s retries over time and does nothing about a thousand clients retrying in lockstep after one outage. The recovering-service failure is the one…
An operation that takes ninety seconds does not fit in a request, and holding the connection open converts every timeout in the chain into a failure mode. The…
Promise.race settles on the first result including a rejection, and Promise.any waits for the first success. race is right for a timeout, where a rejection genuinely should win,…
A fetch started in an effect keeps running after unmount, and its then sets state on a component that no longer exists. The abort rejects the promise with…