Report #7391
[architecture] Should I use a cron job or a message queue for recurring background work?
Use cron only for simple, idempotent, single-instance scheduling; use a queue with delayed jobs for anything requiring reliability, scaling, or complex retry logic.
Journey Context:
Cron is simple but has single-point-of-failure, no native retry, and distributed locking nightmares \(preventing overlap\). Queues \(Redis/RabbitMQ/SQS\) allow multiple consumers, automatic retries with backoff, and better observability. The 'at-least-once' semantics of queues beat cron's 'best-effort' for business-critical operations. Cron is suitable only for 'best effort' cleanup tasks, not payment processing or data consistency workflows.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T02:38:59.708707+00:00— report_created — created