Laravel 的队列系统让你将耗时的任务(发送邮件、处理文件、调用缓慢的 API)延迟到后台运行,以便用户获得快速响应。任务被封装为Jobs,推送到队列上,并由独立的worker进程处理。
队列解决的问题
text
Slow work done inline makes the user wait and risks request timeouts:
✗ sending emails, processing images/video, generating reports, calling slow APIs
✓ QUEUE it → respond to the user immediately → a worker handles it in the background
