renatocason / magento2-module-mq-example
Magento 2 消息队列操作系统示例模块
1.1.2
2020-11-07 19:02 UTC
Requires
- php: ~7.1.0|~7.2.0|~7.3.0
- magento/framework: 100.1.*|101.0.*|102.0.*
- renatocason/magento2-module-mq: ~1.1.0
- renatocason/magento2-module-mq-mysql: ~1.2.0
README
这是Rcason_Mq的简单实现示例 Rcason_Mq。
此模块仅作为概念验证和简单示例,以帮助入门消息队列。在任何实际应用中都不是很有用。
安装
- 通过Composer安装模块
$ composer require renatocason/magento2-module-mq-example
- 启用模块
$ bin/magento module:enable Rcason_MqExample $ bin/magento setup:upgrade
使用
- 确保一切配置正确
$ bin/magento ce_mq:queues:list
product.updates 应该出现在可用队列的列表中。
- 启动消费者(并保持运行状态)
$ bin/magento ce_mq:consumers:start product.updates
- 跟踪 system.log
$ tail -f var/log/system.log
- 在管理员中打开一个产品并保存
- 您保存的产品相关的消息将出现在日志中
作者、贡献者和维护者
作者
许可协议
根据开放软件许可版本3.0授权