Il sistema di code di Laravel ti permette di rimandare compiti che richiedono molto tempo (invio di email, elaborazione di file, chiamate a API lente) per eseguirli in background, così l'utente ottiene una risposta veloce. I compiti sono incapsulati come Job, inseriti in una coda ed elaborati da processi worker separati.
Il problema che le code risolvono
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
