What is the difference between a 'Job Queue' and a 'Cron Job'? When would you move a task from a controller to a background queue?
Last updated
A cron job is time-driven: it runs on a fixed schedule for recurring batch work like reports or cleanups.
A job queue is event-driven: a producer pushes jobs that separate workers process asynchronously with retries (backed by
Redis, a DB table, or SQS).Move work from a controller to a queue when it is slow, external (email, image processing, third-party APIs), or must retry on failure, and the user doesn't need the result immediately.
- https://kokil.com.np/blog/laravel-cron-job-vs-queue-worker-when-to-use-each
- https://www.lexo.ch/blog/2025/11/laravel-queues-and-jobs-explained-when-to-use-them-and-how-they-supercharge-your-app-performance/
- https://dev.to/anwar_nairi/laravel-commands-and-queue-jobs-when-to-use-them-h45
- https://rafftechnologies.com/learn/guides/cron-jobs-queues-workflow-automation-background-work