renatocason/magento2-module-mq-example

Magento 2 Message Queue OS Example Module

1.1.2 2020-11-07 19:02 UTC

This package is auto-updated.

Last update: 2024-12-08 04:21:45 UTC


README

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.

Installation

  1. Require the module via Composer
$ composer require renatocason/magento2-module-mq-example
  1. Enable the module
$ bin/magento module:enable Rcason_MqExample
$ bin/magento setup:upgrade

Usage

  1. Check that everything is properly configured
$ bin/magento ce_mq:queues:list

product.updates should appear in the list if available queues.

  1. Launch the consumer (and leave it running)
$ bin/magento ce_mq:consumers:start product.updates
  1. Tail system.log
$ tail -f var/log/system.log
  1. Open a product in the admin and save it
  2. A message regarding the product you saved will appear in the logs

Authors, contributors and maintainers

Author:

License

Licensed under the Open Software License version 3.0