Testing the message queue
To test message sending from Commerce to RabbitMQ:
-
Log in to the RabbitMQ web console in AWS to monitor queues.
-
In the Admin, create a product.
-
Create an Inventory source.
-
Enable Stores > Configuration > Catalog > Inventory > Admin bulk operations > Run asynchronously.
-
Go to Catalog > Products. From the grid, select the product created above and click Assign Inventory Source.
-
Click Save & Close to complete the process.
You should now see messages appear in the RabbitMQ web console.
-
Start the
async.operations.all
message queue consumer.bin/magento queue:consumers:start async.operations.all
You should now see the queued message get processed in the RabbitMQ web console.
Verify that inventory sources have changed on the product in the Admin.
Previous pageManage message queues
Next pageConsumers