{
  "id": 18823306,
  "title": "Cron or Message Queue Scheduling for 10,000 Delayed Webhook Tasks (and Retry Rules)",
  "url": "https://urgent.news/2026/11/08/cron-or-message-queue-scheduling-for-10-000-delayed-webhook-tasks-and",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-08T00:24:19.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/linusholm3764/cron-or-message-queue-scheduling-for-10000-delayed-webhook-tasks-and-retry-rules-4dcl"
  },
  "original_language": "en",
  "account": null,
  "summary": "The article discusses the choice between using a cron scanner or a delayed message queue for scheduling 10,000 delayed webhook tasks, along with retry rules. The recommended approach is to use a durable queue message for each reservation expiry, with a small cron scan as a repair path. The queue ensures that each delayed webhook task has its own retry and idempotency boundary, while the cron remains useful for finding records whose scheduling transaction was interrupted. Neither mechanism should own a long-running job or hide an unreliable public HTTPS endpoint. The article also provides a decision matrix for determining the best approach based on specific requirements and a code example demonstrating how to implement the suggested solution using the transactional outbox pattern and conditional updates to handle message duplication.",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}