Urgent.News

What's breaking now, across thousands of outlets.

Tech

Node.js retry design: queues, dead-letter handling, and cron's narrow role

Short answer: for failed Node.js SaaS background jobs, use a queue with worker-driven retries and a dead-letter queue; use cron to start periodic cleanup or redrive work, not to represent each failed job. Option Use it for What changes the decision Queue plus DLQ Per-job retries and isolation The consumer must be idempotent because standard delivery is at-least-once. Cron Periodic cleanup or a…

When dealing with failed Node.js SaaS background jobs, it is recommended to use a queue with worker-driven retries and a dead-letter queue (DLQ). The consumer must be idempotent, as standard delivery is at-least-once. Cron should be used for periodic cleanup or a DLQ review, not for representing each failed job. BullMQ is a Node.js deployment already built around Redis and can be a reasonable fit when that runtime is already an intentional dependency.

RabbitMQ and Amazon SQS are alternatives that offer broker-level control and a dead-letter queue model, respectively, which can also fit the same retry pattern. The recommendation is to use a queue as the default, with a failure belonging to one job, one acknowledgement decision, and one route to later inspection. A schedule only indicates when to run something, while a queue provides a unit of work with a delivery lifecycle.

Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

66x faster on sorted data: Timsort, 24 years on

66x faster on sorted data: Timsort, 24 years on Tim Peters died on July 15, 2026. Guido van Rossum announced it today, November 11, on the Python discussion forum.

  • Tim Peters, Python contributor, died at 74 on July 15, 2026
  • Timsort algorithm, created in 2002, excels on sorted data
  • 66x faster than random data, 8x faster than reversed data

I Cloned a Repo and It Ran Code Before I Read a Single Line

03:03 in the morning, and a file appeared on my machine that I never asked for. I had typed exactly one command: npm install .

  • Five execution surfaces tested on cloned repository
  • Two surfaces (npm preinstall, Python setup.py) executed on install
  • Two surfaces (Git hook, README) never executed in experiment

The Perfect Context

There was nothing unusual about the email. At least, that was how it looked to him. Cybercrime: Malice in Everyday Life — Part 2 You don't have to be someone special to be targeted.

  • Corey, a logistics manager, received an ordinary-looking email with shipment details.
  • Attackers gained access to Corey's account via session cookie theft (Adversary-in-the-Middle).
  • The attackers deceived Corey's partner company by transferring funds to a different account.

More from Thursday 12 November →