A queue defers long tasks, such as sending an email, outside the HTTP request, to respond quickly to the user. Tasks are stored in a system (database, Redis) and processed later by workers. This improves responsiveness and allows retries.
Example
SendMailJob::dispatch($user);