Tag: typescript
-
How to retry failed jobs in Node.js without making it worse
Add job queue retries in Node.js with exponential backoff and jitter, and stop early on errors that retrying cannot fix. Code and simulation included.
-
How many jobs should a Node.js queue run at once?
One job at a time is slow, and all at once gets you rate-limited. Add job queue concurrency in Node.js with a safe limit and a clean shutdown.
-
What is a job queue, and why does my API need one?
Build a job queue in 40 lines of TypeScript and see why sending email inside an API request makes signups slower and less reliable.