Prototype bundle for demonstrating how Akeneo PIM could communicate with RabbitMQ
This is a prototype bundle for demonstrating how Akeneo PIM could communicate with RabbitMQ, specifically for trialing the JSON over AMQP integration for Magento Commerce and Order Management Systems., (*1)
This bundle is created to export product data in JSON format based on the Magento defined template., (*2)
more information can be found at Magento DevDocs, (*3)
The bundle generates a message about a single product in the predefined format and pushes the message to the queue. The relevant configuration for the queue is set in the export profile., (*4)
{ "product": { "associations": [ { "products": [ "WB-WD7S", "WB-WD10S" ], "type": "upsell" }, { "products": [ "WB-WD7S", "WB-WD10S" ], "type": "crosssell" } ], "attribute_set": "4", "created_at": "2016-03-03T08:56:46+00:00", "enabled": true, "id": "WB-WD13S", "modified_at": "2016-03-03T08:58:33+00:00", "name": [ { "channel": null, "locale": null, "value": "Washburn WD13S" } ], "sku": "WB-WD13S", "visibility": [ "catalog", "search" ] } }
Array list can be managed in the file Balance/Bundle/RabbitMQBundle/RabbitMQ/Normalizer/ProductNormalizer.php, (*5)
public function registerBundles() { $bundles = [ new Balance\Bundle\RabbitMQBundle\BalanceRabbitMQBundle(), ] return $bundles; }
Clear cache, (*6)
Go to "Export profiles" and create a new export using "Products Export RabbitMQ" connector., (*7)
Configure the export profile, the variables responsible for RabbitMQ connection are:, (*8)
Run the export profile and see how your messages appears in the RabbitMQ UI., (*9)