Background Jobs
Job queues, workers, scheduling
- 00 Background Jobs — Roadmap Worker loops, Redis and Postgres-backed queues, retries, DLQs, idempotency, cron, and production patterns. beginner 3 min →
- 01 Why Background Jobs What belongs in a job queue, what belongs in the request cycle, and why mixing them breaks both. beginner 7 min →
- 02 Queue Backends Redis-backed queues with BullMQ, Postgres-backed with pg-boss — internals, trade-offs, and when each fits. intermediate 11 min →
- 03 Retries & Backoff Exponential backoff, jitter, max attempts, and knowing when to stop retrying and give up. intermediate 9 min →
- 04 Idempotency Design jobs so running them twice is the same as running them once — because at-least-once delivery guarantees you will run them twice. intermediate 10 min →
- 05 Cron & Scheduled Jobs Running work on a schedule — cron syntax, leader election to avoid duplicate runs, and operational considerations. intermediate 8 min →
- 06 Worker Patterns & Production Graceful shutdown, concurrency limits, priority queues, fan-out, and the operational checklist for running jobs in production. advanced 10 min →