首页 > 学院 > 开发设计 > 正文

laravel queue:work & queue:listen

2019-11-06 08:07:54
字体:
来源:转载
供稿:网友

laravel queue:work & queue:listen

The most important difference is that queue:work –daemon does not restart the framework on each job, but queue:listen does. In fact, listen starts a whole new Laravel PRocess for each job.

Try for yourself: Open 2 terminals and run work –daemon in one and listen in the other. The work window will execute jobs much faster than listen.

http://stackoverflow.com/questions/26048698/what-is-the-difference-between-queuework-daemon-and-queuelistenhttps://www.reddit.com/r/laravel/comments/5955q1/queuework_vs_queuelisten/?st=iztkq6cg&sh=087c155b
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表