renatocason/magento2-module-mq-mysql

Magento 2 消息队列 OS MySQL 代理实现

1.2.3 2020-11-07 19:01 UTC

This package is auto-updated.

Last update: 2024-09-08 03:40:41 UTC


README

Rcason_Mq提供MySQL消息队列后端实现。

Build Status Coverage Status Latest Stable Version Latest Unstable Version Total Downloads License

安装

  1. 通过Composer安装模块
$ composer require renatocason/magento2-module-mq-mysql
  1. 启用模块
$ bin/magento module:enable Rcason_MqMysql
$ bin/magento setup:upgrade

配置

  1. 此处所述配置Mq模块
  2. 在模块的etc/ce_mq.xml文件中配置队列时,将mysql指定为代理
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Rcason_Mq:etc/ce_mq.xsd">
    <ceQueue name="product.updates" broker="mysql"
        messageSchema="int"
        consumerInterface="Rcason\MqExample\Model\ExampleConsumer"/>
</config>

作者,贡献者和维护者

作者

许可

根据开放软件许可版本3.0许可