Magento message queues with RabbitMQ: what moving off the MySQL adapter changes
Moving Magento Open Source background work off the MySQL queue adapter is an infrastructure change as well as a configuration change. Bulk operations and asynchronous API requests are written to queues as messages, and consumers (long-running PHP processes) pick those messages up and process them. Under the MySQL adapter, the queue tables live in the same database that serves the storefront and admin, so consumer load competes with checkout and catalog reads. A broker such as RabbitMQ gives the queues their own service, with its own hosting, credentials, network rules, memory and disk limits, and monitoring. Someone has to own that service, patch it, and decide where it runs before any env.php change is made.
For the broker choice, confirm your exact release first. Adobe's system requirements for 2.4.9 and for 2.4.8-p5 both list RabbitMQ 4.3, so RabbitMQ is the broker those requirements document for current lines. ActiveMQ Artemis does not appear in the supplied requirements for either release, so do not choose it on the strength of this page. Check Adobe's current documentation for your exact Magento Open Source version, and ask your integrator or Adobe support in writing whether Artemis is supported with your stack, before you design around it. If it is not, the choice is already made.
Plan the cutover before you change configuration. Decide which consumers will run on the broker, how the MySQL-backed queues will drain or be stopped, and who will watch the backlog during the first business cycle. Record the RabbitMQ version, the virtual host, the user with the minimum permissions the consumers need, and the network path from every web and consumer node. Confirm that your own staging environment reproduces bulk and async API traffic at realistic volume, because a broker that works for a few test messages can still fail under a month-end import.
What the platform needs before a broker is connected
A broker only helps once the store underneath it is supported and stable. Confirm the Magento release, the supporting services and the network path first, then point consumers at a broker that every web and consumer node can reach. Each card below is a check to complete before configuring RabbitMQ or ActiveMQ Artemis.
Supported Magento release line
Start from Magento Open Source 2.4.9 or 2.4.8-p5, the releases Adobe lists in the current requirements. Confirm the store is on one of these versions before any queue work, because support windows and patch levels differ by line. Check that the target release is not near its end of regular support, since queue changes are harder to revisit later.
System requirementsRabbitMQ 4.3 broker version
Adobe's requirements for both 2.4.9 and 2.4.8-p5 list RabbitMQ 4.3. Confirm the broker you deploy matches this version exactly, and that you are not running an older broker from a previous project. Adobe supports only the listed combinations, so any other broker version needs a written confirmation from Adobe before it goes into production.
PHP, database and cache versions
Confirm PHP, MySQL or MariaDB, OpenSearch, and Redis or Valkey match the Adobe matrix for your chosen release. Queue consumers run the same PHP code as the web tier, so a mismatch shows up as failed jobs rather than a clean startup error. Record each version in your deployment inventory so consumer hosts can be checked against it.
Composer and nginx versions
Composer and nginx are listed in the same requirements. Consumers are started from the installed codebase, so the Composer build that produced the code must match what the platform expects. Check that the web server and command-line hosts share the same build pipeline, so a consumer never runs code the web tier has not released.
Broker host and network paths
Place the broker where web nodes, consumer nodes and admin hosts can reach it on the required ports, and nowhere else. Verify routing and firewall rules from every node that publishes or consumes messages, not only from one test host. Record which node runs the cron-based consumers and which runs supervised consumers, because each needs a working path to the broker.
TLS and broker account credentials
Create a dedicated broker account for the store with permissions limited to the virtual host and queues it uses. Serve the connection over TLS and store the credentials in the environment configuration, not in version-controlled files. Confirm with your broker documentation how certificates are rotated, because an expired certificate stops every consumer at once.
Non-production copy of the store
Build a staging store from a recent production database and code snapshot, with the same release and extensions. Use it to test consumer startup, bulk and async API jobs, and failure handling before production changes. Confirm that staging has its own broker and credentials so a test job cannot publish into live queues.
RabbitMQ or ActiveMQ Artemis: how to choose
RabbitMQ is the broker that appears in Adobe's supplied system requirements for the 2.4.9 and 2.4.8-p5 lines, with RabbitMQ 4.3 listed for both. For a self-hosted Magento Open Source store, that listing is the simplest basis for a support conversation: you run a broker version Adobe names, on the PHP, MySQL or MariaDB, OpenSearch and Redis or Valkey combinations Adobe supports together. Adobe supports only the listed combinations, so a newer or older broker is a decision you must take to Adobe or your partner before go-live, not after.
- Named requirement: RabbitMQ 4.3 appears in the 2.4.9 and 2.4.8-p5 requirements, so confirm the version against the release you actually run.
- Consumer model: Magento runs consumers as separate processes that read from named queues, so plan how each consumer is started, restarted and watched.
- Operating scope: Your team owns broker patching, disk, memory alarms, clustering if used, and access control for the broker account.
- Upgrade coupling: Each Magento patch or line upgrade may move the supported broker version, so track it in the same change plan as the platform.
- Hosting choice: Confirm whether you run RabbitMQ on the same hosts as the web tier or separately, because the requirements page does not settle that for you.
Before committing, check the exact broker version and combination against the requirements page for your release.
ActiveMQ Artemis is a reasonable broker to evaluate because your organization may already run it, but the supplied Adobe requirements for the 2.4.9 and 2.4.8-p5 lines name RabbitMQ and do not list Artemis. Treat Artemis as a question to settle with Adobe's documentation for your exact release and the Artemis version you run. Confirm which configuration, consumer behavior and failover settings are supported before you build anything around them.
- Support check: Confirm in Adobe's documentation for your release whether Artemis is a supported broker, and under which versions and settings.
- Consumer behavior: Test that each Magento consumer starts, acknowledges messages and retries as expected against Artemis, not only that messages are delivered.
- Questions for Adobe or your partner: Ask whether Artemis is covered for your release, which Artemis version and protocol settings are covered, how support is handled if the broker is the cause of an incident, and what changes if you upgrade Magento.
- Operating ownership: Your team owns Artemis clustering, persistence, security configuration and patching, which is separate from any Magento support answer.
- Evidence: Keep written answers from Adobe or the partner in the change record before committing.
Do not commit to Artemis until those answers are in writing for the release you will run.
A store with low order and background-job volume may not need a dedicated broker at all. Magento can run its queues on the MySQL adapter, which keeps the queue inside the database you already operate and avoids a second stateful service. The trade-off is operational: the database absorbs queue load, and you still need consumers running under cron or a supervisor and someone watching for backlogs. Staying on the adapter is a choice to make deliberately, not a default you reach by omission.
- Fewer moving parts: No broker to install, patch, secure or back up separately, which reduces the set of services on your change calendar.
- Consumer operations: Consumers still need a scheduled or supervised start, so the operating burden for consumers does not disappear.
- Monitoring burden: You monitor queue tables and consumer health in the same database and log locations, which can be simpler for a small team.
- Growth risk: Higher volumes of bulk or asynchronous API work add load to the database, so the move to a broker should be planned before the database becomes the bottleneck.
- Migration path: Moving from the adapter to a broker later is a planned change with its own testing, so record the trigger conditions now.
Before choosing this path, ask your partner to show the consumer and backlog monitoring you will run on the adapter.
How work moves from the storefront to a consumer
A shopper action, admin save or API call publishes a message to the broker instead of writing the slow work inline. The message waits on a queue in the broker network until a consumer on a separate worker node pulls it and processes it against the database. If processing fails, the broker can route the message to a retry or dead-letter queue, so you can inspect it rather than lose it. The MySQL queue adapter path is shown for comparison, because it keeps the queue inside the database that the web tier already uses. Check each boundary crossing when you plan network rules, credentials and TLS.
Message flow through the broker, worker and database, with the MySQL adapter path for comparison.
Configuring the broker connection and consumers in order
This sequence moves Magento Open Source from the MySQL queue adapter to a dedicated RabbitMQ or ActiveMQ Artemis broker, with each consumer enabled and checked before the store relies on it.
Confirm release and broker versions
Your team checks the Magento Open Source release you run against Adobe's system requirements for that release, then confirms the RabbitMQ version on the list. Adobe supports only the listed combinations, so a broker version outside the list is a blocker to resolve before any configuration change. For example, Adobe's 2.4.9 requirements list RabbitMQ 4.3, but your own release may list a different broker version, so read the page for your exact release. Done when the release, PHP, database and broker versions are written down and match a supported row.
Provision broker account and virtual host
The platform or messaging team creates a dedicated broker user with only the permissions the store needs, plus a virtual host reserved for Magento queues. Keep the store account separate from administrator and other application accounts, and record where the credentials will be stored. Confirm the account can log in and see the virtual host from the store host's network path. Done when a login test from the web and consumer hosts succeeds and no shared or default account is used.
Set broker connection in environment configuration
A developer adds the broker host, port, virtual host, user and password to the environment configuration file, using the queue settings documented by Adobe for the release. Keep the password in the environment or a secrets store rather than in version-controlled shared configuration. Confirm the exact configuration keys against Adobe's message queue documentation for your version before editing. Done when the configuration file is saved, the file permissions are restricted, and a connection test from the store host reaches the broker.
Run setup and deploy commands for the release
Your deployment engineer runs the setup and static content deploy steps that Adobe documents for the release, in the same maintenance window used for other code or configuration changes. Run them in the documented order, in the non-production environment first, and capture the output. Confirm the exact command names in Adobe's documentation for your release, since they are not listed here. Done when the commands finish without errors and the store's admin and storefront load after the deploy.
Enable only the consumers the store needs
The developer or store operator reviews the consumer list Adobe documents for the release and enables only the consumers the store uses, such as those for the features in scope. Leave others disabled so they do not consume broker resources or create backlogs nobody watches. Record which consumers are enabled and why. Done when the consumer status listing command shows the intended consumers as enabled and the rest as disabled.
Run consumers under cron or a supervisor
Operations sets up each enabled consumer to run continuously, either through the cron-based approach Adobe documents or under a process supervisor on the consumer hosts. Choose one method per environment, define restart behavior, and send logs to a location the team monitors. Confirm the approach for your release in Adobe's documentation. Done when each consumer process is running after a host restart test, and the supervisor or cron status shows no repeated crashes.
Send test bulk or async request
The QA engineer sends one test bulk operation or asynchronous API request in staging, such as a small batch that exercises an enabled consumer. Watch the broker queue depth in the management console or command line, then confirm the message is consumed and the result appears in the store. Repeat with a failure case so the team sees how errors are reported. Done when the queue depth returns to its baseline, the expected record changes, and the consumer log shows the message was processed.
Which Magento queue settings map to broker settings
This table pairs each Magento-side queue setting with the RabbitMQ or ActiveMQ Artemis object it points to, who owns the value, and what to confirm before go-live. Read it as a checklist: every connection detail on the Magento side needs a matching broker object created by the team that runs the broker. Confirm exact configuration keys against Adobe's documentation for your release, since this table uses generic names.
| Magento-side setting | Broker-side object | Owner and what to confirm |
|---|---|---|
| Connection host | Broker hostname or load balancer address that Magento resolves | Platform team. Confirm the address is reachable from every web and consumer node, not only from one host. |
| Connection port | AMQP listener port on the broker (or the Artemis acceptor port) | Platform team. Confirm the port matches the listener actually enabled, and that firewall rules cover each Magento node. |
| Credentials (user and password) | Broker user with permissions limited to the queues Magento uses | Security team. Confirm a dedicated account exists, the secret is stored outside the repository, and rotation has an owner. |
| Virtual host | RabbitMQ virtual host or Artemis address namespace holding Magento queues | Platform team. Confirm Magento is not pointed at a shared vhost used by other applications. |
| TLS settings | TLS listener, certificate chain and CA trust on the broker | Security team. Confirm whether the connection is encrypted end to end and who renews certificates before expiry. |
| Consumer to queue relationship | One queue per consumer name, bound to the exchange or address Magento publishes to | Developer or ops team. Confirm every consumer named in the configuration has a running process and a matching queue. |
| Topic and queue names | Exchange, routing keys or Artemis addresses created from Magento topic definitions | Developer team owns names in module code. Confirm names against the installed release rather than copying them from older guides. |
| Dead-letter or failure handling | Dead-letter exchange or queue for messages that fail repeatedly | Ops team. Confirm where failed messages go, who reviews them and how they are replayed. |
| Monitoring endpoint | Management API or metrics endpoint exposing queue depth and consumer count | Ops team. Confirm the monitoring account is read-only and that alerts fire on backlog growth. |
Securing the broker, the consumers and the message content
A message broker sits between the storefront, the consumers and back-office systems, so it carries business data even when it never touches a card form. The controls below decide whether the broker stays out of PCI DSS scope or quietly joins it, and they should be designed together with the consumer and logging settings.
Least-privilege broker accounts
Give each consumer and the web tier its own broker user, with permissions limited to the queues and exchanges it publishes or reads. Avoid the default guest account and any administrator user in application configuration. Check that a compromised consumer cannot read or purge queues belonging to other workloads, and that topic and queue permissions are reviewed after each new consumer is added. Confirm the exact permission model with your RabbitMQ 4.3 or Artemis version before writing the policy.
System requirementsSeparate credentials per environment
Development, staging and production should use different broker hosts or virtual hosts, and different credentials that never appear in shared repositories. A copied staging password that also works in production turns a low-risk test system into a path into live order data. Rotate credentials when staff or vendors change, and record which pipeline or person holds each one.
TLS between nodes and the broker
Encrypt client connections to the broker and the traffic between broker cluster nodes, so queued order, customer or pricing messages cannot be read or altered on the network. Decide which certificate authority issues broker certificates and how renewal is handled, because an expired certificate stops every consumer at once. Confirm TLS settings with the broker vendor documentation for your chosen version.
Broker network segmentation
Place the broker on an internal network segment reachable only from the Magento web and consumer hosts and from named monitoring systems. It should have no public address and no route from the internet, and firewall rules should allow only the AMQP or Artemis ports the consumers need. If the broker shares a network zone with cardholder data systems, your assessor will expect that relationship to be documented and justified.
Management console access control
The RabbitMQ management interface and the Artemis console expose queue contents, message counts and administrative actions. Restrict them to a small administrator group, require strong authentication and place them behind a bastion or VPN rather than a public load balancer. Disable any console function you do not use, and log administrator sign-ins so that queue purges or user changes can be traced.
Secrets in environment configuration
Broker credentials belong in the environment configuration or a secrets manager, not in committed files or the shared env.php that travels with code. Limit read access to the deployment and consumer hosts, and make sure deployment logs and CI output mask the values. Check that database backups and exported configuration do not carry broker passwords in plain text.
Payload content and log handling
Messages for orders, customers and pricing can contain names, addresses, email addresses and order totals, and they persist in the queue until consumed. Keep card numbers and full payment data out of payloads entirely, reference records by ID where possible, and exclude payload bodies from application and broker logs. Apply the same retention rule to broker backups and disk snapshots as to the database, and confirm with your assessor whether message data counts as personal data under your GDPR scope.
Why messages pile up or fail after the switch
This table pairs each queue symptom seen after moving from the MySQL queue adapter to RabbitMQ or ActiveMQ Artemis with its likely cause, a check you can run, and the fix. Work down the rows in order: confirm the consumers are running and connected before you examine the broker's data or the code.
| Symptom | Likely cause | Check | Fix |
|---|---|---|---|
| Consumers not running after a deploy | Consumer processes were not started on the new host or were never added to cron or the supervisor. | Run bin/magento queue:consumers:list and compare it with the consumers your runbook expects. | Start the missing consumers and add them to your cron or supervisor configuration so they start on boot. |
| Consumer stopped by the supervisor without restart | The process exited, for example after a fatal error or memory limit, and the supervisor's restart policy is absent or set to stop. | Check the supervisor status for the consumer and read the exit reason in its log and in var/log. | Configure automatic restart for each consumer, then fix the error that caused the exit before relying on it. |
| Broker authentication or virtual host errors | The credentials or virtual host in the queue connection settings do not match the broker user and permissions. | Compare the amqp or Artemis connection values in app/etc/env.php with the broker user, password and vhost, and read the connection errors in the logs. | Correct the connection values, give the user permissions on the vhost, and restart the consumers so they reconnect. |
| Messages stuck unacknowledged | A consumer received messages and stopped before acknowledging them, often because it crashed or a handler hung. | Look for unacknowledged counts that stay flat in the broker's management view and match a consumer that is not progressing. | Restart the affected consumer, find the handler error in the logs, and confirm how your broker redelivers unacknowledged messages. |
| Growing backlog after a bulk import | The import publishes far more messages than the running consumers can process, so the queue depth keeps rising. | Watch the queue depth and consumer count during the import, and confirm the consumers are running at all. | Run enough consumers for the import window, schedule the import in smaller batches, and track the backlog until it drains. |
| Old code running in consumer processes after a release | Long-running consumers kept the code loaded before the release, so they still execute the previous module logic. | Compare the deployment time with each consumer's start time, and check the release steps for a consumer restart. | Add a consumer restart to the release procedure after code and setup steps finish, and verify the restart in the runbook. |
| Broker version mismatch against the supported matrix | The installed RabbitMQ version is not one Adobe lists for your Magento Open Source release line. | Compare the installed broker version with the RabbitMQ version listed for your release in Adobe's system requirements. | Upgrade or install a broker version from the supported list before relying on the queue in production, and test it in staging first. |
What buyers ask before moving Magento queues to a broker
Is ActiveMQ Artemis supported on my Magento Open Source release?
Check the Adobe system requirements for your exact 2.4.x release before choosing a broker, because support is listed per version and Adobe supports only the combinations it lists. The supplied requirements for 2.4.9 and 2.4.8-p5 name RabbitMQ 4.3 as the message broker, and they do not list ActiveMQ Artemis. Treat Artemis as something to confirm with Adobe documentation and your own test results before you commit. If Artemis is not in the listed requirements for your release, RabbitMQ is the broker the documentation names. Confirm your release line against the Adobe Commerce system requirements page before you scope the work.
How much effort does moving off the MySQL queue adapter take?
The effort depends on what you run, not on a single number. The main drivers are the number of consumers you configure, how many custom modules publish messages and how many web and worker nodes share the queue. Existing monitoring also matters, because you need visibility into backlogs before and after the switch. Custom publishers and consumers need code review and testing against the new broker, and multi-node layouts need coordinated restarts of consumer processes. Ask any partner to break the estimate into inventory of consumers and publishers, broker setup, supervisor or cron configuration, testing and cutover. Ask for each item to be listed separately in the written scope.
What does the work need from my team?
Plan for access and time from several roles. You need someone who can operate the broker, including installation, user and virtual host management, TLS, and backups or failover if your standards require them. Engineers need access to the staging and production environments, including the ability to restart consumers and read logs. You also need a staging copy of the store that matches production closely enough to test real message flow, and a maintenance window for the cutover. Confirm each of these with your platform and security teams before the engagement starts, since broker access and change approvals often take the longest to arrange.
Can our own team do the switch without an outside partner?
Yes, if your team already runs Magento in production and has someone who can operate a message broker. The documented steps cover configuring the broker connection, deploying consumer configuration and running consumers under cron or a process supervisor. The harder parts are custom module review, failure handling for messages that cannot be processed, and load testing with your real order and bulk volumes. A fixed-scope engagement with DeployOpen can cover some or all of that work, and a written scope lets you compare it directly with the cost of your own staff time. Ask whether your team has tested consumer restarts and dead-letter handling before deciding.
How often must the broker setup be revisited on each patch cycle?
Revisit it on every patch cycle. Adobe recommends upgrading every patch cycle to stay secure and PCI compliant, and it names customizations, extension count, third-party integrations and coding practices as drivers of upgrade effort. The broker version also changes with each release, so check the required RabbitMQ version in the system requirements for your target release before upgrading. Each cycle, confirm that custom consumers still run, that the supervisor configuration is current and that backlog alerts still fire. Ask any partner to include a retest of queues in every upgrade scope.
What should I put in a written quote for queue work?
A written quote should state the release version and broker in scope, the list of consumers and custom publishers covered, and the environments included, such as staging and production. Ask for the deliverables in writing: configuration files, supervisor or cron definitions, a monitoring setup for queue backlogs, failure-handling rules and a test report. Confirm who operates the broker after go-live and how upgrades are handled. The quote should also name the assumptions, including the access you need from your team, the maintenance window and the items that are out of scope, so that changes are priced through a documented change process.
Does moving to a broker change our compliance obligations?
A broker adds a component that handles order and customer data, so it belongs in your system inventory and access review. Confirm whether the broker stores message content, where it runs, how its connections are encrypted and who can read its logs. Your compliance team should decide whether the broker falls inside the scope of your PCI DSS assessment. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors and certification bodies issue the actual assessment outcome. Ask your assessor early which evidence they expect for the broker.
How DeployOpen scopes and delivers a Magento queue migration
DeployOpen plans, builds, documents and supports self-hosted Magento Open Source stores inside your own infrastructure, including the move of asynchronous work from the MySQL queue adapter to RabbitMQ or ActiveMQ Artemis. Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
How we scope
- Inventory every queue topic, consumer and cron job your store currently relies on, including custom modules.
- Confirm the broker choice against the RabbitMQ version listed in Adobe's system requirements for your Magento release.
- Write down the written scope covering consumers, supervisor setup, bulk and async API paths, monitoring and handover.
How we build
- Configure the queue connection in env.php and deploy the broker in a test environment that mirrors production.
- Assign consumers to supervisor or cron runners and set consumer counts based on measured backlog in staging.
- Test failure handling, including retries and dead-letter behavior, with replayed messages before cutover.
How we hand over
- Deliver runbooks for starting, stopping and restarting each consumer, with the commands and log locations used on your host.
- Document the monitoring thresholds, alert routes and the backlog response steps your operations team will follow.
- Train your operations staff on queue recovery, then confirm the handover checklist is signed off in writing.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- Retest queue behavior whenever you move to a new Magento patch, PHP version or broker release.
- Confirm with your team which support responsibilities sit with DeployOpen and which stay in-house before the retainer starts.

