Migrate message queue configuration
Migrate from 2.1 to 2.2
To upgrade the message queues for Adobe Commerce or Magento Open Source 2.1, you must create the following files in the <module>/etc directory for each module that will use the message queue framework.
queue_consumer.xml- Defines the relationship between an existing queue and its consumer.queue_topology.xml- Defines the message routing rules and declares queues and exchanges.queue_publisher.xml- Defines the exchange where a topic is published.
The existing queue.xml file is deprecated.
For complete details about these files, see Configure message queues
data-variant=warning
data-slots=text
communication.xml file has not changed for Adobe Commerce and Magento Open Source 2.2.Create the queue_consumer.xml file
The first column in the following table lists the all the parameters in the queue_consumer.xml file. The second column lists where in the Adobe Commerce and Magento Open Source 2.1 queue.xml file the equivalent parameters are located.
<consumer>/name<broker>/<queue>/consumer<consumer>/queue<broker>/<queue>/name<consumer>/handler<broker>/<queue>/handler<consumer>/consumerInstance<broker>/<queue>/consumerInstance<consumer>/connection<broker>/type<consumer>/maxMessages<broker>/<queue>/maxMessagesCreate the queue_topology.xml file
The first column in the following table lists the all the parameters in the queue_topology.xml file. The second column lists where in the Adobe Commerce and Magento Open Source 2.1 queue.xml file the equivalent parameters are located.
<exchange>/name<broker>/exchange<exchange>/typetopic.<exchange>/connection<broker>/type<exchange>/durable<exchange>/autoDelete<exchange>/internal<exchange>/<binding>/idid parameter.<exchange>/<binding>/topic<broker>/topic<exchange>/<binding>/destinationTypequeue.<exchange>/<binding>/destination<broker>/<queue>/name<exchange>/<binding>/disabled<exchange>/<arguments> and <exchange>/<binding>/<arguments>Create the queue_publisher.xml file
The first column in the following table lists the all the parameters in the queue_publisher.xml file. The second column lists where in the Adobe Commerce and Magento Open Source 2.1 queue.xml file the equivalent parameters are located.
<publisher>/topic<broker>/topic<publisher>/disabled<publisher>/<connection>/name<broker>/type<publisher>/<connection>/exchange<broker>exchange<publisher>/<connection>/disabledMigrate from 2.0 to 2.2
To upgrade from Adobe Commerce or Magento Open Source 2.0, you must create the following files in the <module>/etc directory for each module that will use the message queue framework.
queue_consumer.xml- Defines the relationship between an existing queue and its consumer.queue_topology.xml- Defines the message routing rules.queue_publisher.xml- Defines the relationship between a topic and its publisher.
The existing queue.xml file is deprecated.
For complete details about these files, see Configure message queues
Create the queue_consumer.xml file
The first column in the following table lists the all the parameters in the queue_consumer.xml file. The second column lists where in the Adobe Commerce and Magento Open Source 2.0 queue.xml file the equivalent parameters are located.
<consumer>/name<consumer>/name<consumer>/queue<consumer>/queue<consumer>/handler<consumer>/class and <consumer>/method in the format <Vendor>\Module\<ServiceName>::<methodName>.<consumer>/consumerInstance<consumer>/executor<consumer>/connection<consumer>/connection<consumer>/maxMessages<consumer>/max_messagesCreate the queue_topology.xml file
The first column in the following table lists the all the parameters in the queue_topology.xml file. The second column lists where in the Adobe Commerce and Magento Open Source 2.0 queue.xml file the equivalent parameters are located.
<exchange>/name<publisher>/exchange<exchange>/typetopic.<exchange>/connection<publisher>/connection<exchange>/durable<exchange>/autoDelete<exchange>/internal<exchange>/<binding>/idid parameter.<exchange>/<binding>/topic<bind>/topic<exchange>/<binding>/destinationTypequeue.<exchange>/<binding>/destination<bind>/queue<exchange>/<binding>/disabled<arguments>Create the queue_publisher.xml file
The first column in the following table lists the all the parameters in the queue_publisher.xml file. The second column lists where in the Adobe Commerce and Magento Open Source 2.0 queue.xml file the equivalent parameters are located.
<publisher>/topic<topic>/name<publisher>/disabled<publisher>/<connection>/name<publisher>/connection<publisher>/<connection>/exchange<publisher>/exchange<publisher>/<connection>/disabled