In this video I show the basic usage of Laravel queue and you will see how queuing a job decrease server response time.
For the demonstration I send email using queue, in a normal internet connection queue decreases 3 to 5 seconds server response times.
In local machine we need to run php artisan queue:listen to listen a job created, but in live server we need to run this artisan command on server startup using supervisor.
how to run a service on server startup in Ubuntu
[ Ссылка ]
code on github
[ Ссылка ]
A step by step tutorial on Medium
[ Ссылка ]
On Morio
[ Ссылка ]
![](https://i.ytimg.com/vi/Cheg4TvqakE/mqdefault.jpg)