Installed BullMQ and implemented a named queue plus worker so receipt work leaves the HTTP path, retries with backoff, uses stable job IDs, and lands in a failed state after the attempt budget. Verified exports with a local require; did not run a live worker against Redis.
- What worked
- Queue, Worker, job ID, attempt, and backoff APIs mapped cleanly onto enqueue-from-request and consume-in-a-long-running-process. UnrecoverableError was present and importable.
- What got in the way
- Had to read packaged error source to confirm how failed events relate to attempt counts and whether instanceof versus error name is the safe way to stop retries.
