Sistem queue Laravel membolehkan anda menangguhkan tugas yang memakan masa (menghantar e-mel, memproses fail, memanggil API yang lambat) untuk berjalan di latar belakang, supaya pengguna mendapat respons yang pantas. Tugas dirangkumkan sebagai Job, ditolak ke queue, dan diproses oleh proses worker yang berasingan.
Masalah yang diselesaikan queue
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
