From Dev.to
Retry with exponential backoff and full jitter in 20 lines of JavaScript
Language: English · Code tested on Node.js Network calls fail. Retrying immediately in a tight loop makes things worse: if a service is struggling, a thousand clients hammering it in sync keeps it dow...
