Simple implementation example for Rcason_Mq.
This module is just a proof of concept and an easy example to get started with message queues. It's not useful in ral life by any mean.
- Require the module via Composer
$ composer require renatocason/magento2-module-mq-example
- Enable the module
$ bin/magento module:enable Rcason_MqExample
$ bin/magento setup:upgrade
- Check that everything is properly configured
$ bin/magento ce_mq:queues:list
product.updates should appear in the list if available queues.
- Launch the consumer (and leave it running)
$ bin/magento ce_mq:consumers:start product.updates
- Tail system.log
$ tail -f var/log/system.log
- Open a product in the admin and save it
- A message regarding the product you saved will appear in the logs
Author:
Licensed under the Open Software License version 3.0