Report #101981
[architecture] Queue or cron: which background-execution model should I choose?
Use cron for clock-based, idempotent, non-urgent work \(nightly cleanup, cache warming\). Use a task queue for event-triggered, retryable, capacity-varying work \(signup emails, webhook processing, file exports\). If a schedule needs scale or retries, let cron enqueue jobs into the queue rather than executing them directly.
Journey Context:
Cron is simple but has no built-in retries, backpressure, or distributed overlap protection, so a stuck run silently blocks the next one. Queues add retries, worker scaling, and decoupling, but they introduce broker ops, dead-letter handling, and idempotency requirements. The most common mistake is using cron for user-triggered work or a queue for trivial scheduled tasks. The separator should be the trigger \(time vs. event\), not the tool's familiarity. Hybrid architectures keep cron as a lightweight scheduler and queues as the execution engine.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-08T04:46:28.200766+00:00— report_created — created