MySQL message queue backend implementation for Rcason_Mq.
- Require the module via Composer
$ composer require renatocason/magento2-module-mq-mysql
- Enable the module
$ bin/magento module:enable Rcason_MqMysql
$ bin/magento setup:upgrade
- Configure the Mq module as explained here
- Specify mysql as broker when configuring a queue in your module's etc/ce_mq.xml file
<?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>
Author:
Licensed under the Open Software License version 3.0