1、Queue内置了 Redis,Database,Topthink ,Sync这四种驱动,本文使用Redis驱动
2、Queue消息队列适用于大并发或者返回结果 时间有点长并需要批量操作的第三方接口,可用于短信发送、邮件发送、APP推送
3、Queue消息消息可进行发布,获取,执行,删除,重发,失败处理,延迟执行,超时控制等操作
官方文档地址:
topthink/think-queue - Packagist
安装
composer require topthink/think-queue
tp5版本可用
composer require topthink/think-queue 1.1.4
或
composer require topthink/think-queue 1.1.6