RabbitMQ
Collection RABBITMQ_CONSUMER and Delivery RABBITMQ_PUBLISH, over the AMQP 0-9-1 protocol. The same
Connection serves the compatible brokers: LavinMQ, CloudAMQP and Amazon MQ for RabbitMQ.
On the Connections screen, the RabbitMQ type sits in the Messaging category, next to Apache Kafka and Azure Service Bus.
CMS does not create queues, exchanges or bindings. The topology belongs to whoever administers the broker. The Collection reads from a queue that already exists, and the Delivery publishes to an exchange that already exists.
Connection


| Field | What it is for |
|---|---|
| Host(s) | Broker name or IP, without amqp:// and without a port. In a cluster, the nodes separated by commas: CMS tries them in order and stays on the first that accepts |
| Port | Empty = 5672, or 5671 with TLS |
| Virtual host | Default / |
| Username / Password | AMQP credential. RabbitMQ’s guest user only gets in through localhost |
| Use TLS (AMQPS) | Encrypted connection |
| Validate TLS certificate / CA certificate | CA that signs the broker’s certificate, when it is not public |
| Client certificate / Private key | mTLS. A client certificate without a password = EXTERNAL authentication: the broker takes the user from the certificate (requires the rabbitmq_auth_mechanism_ssl plugin). Fill in both or neither |
| Heartbeat (s) | AMQP heartbeat interval, which drops a dead connection instead of leaving it hanging |
| Timeout (ms) | Maximum connection time |
| Management API URL (optional) | rabbitmq_management plugin, e.g. http://broker:15672. Uses the same user, which needs the monitoring tag |
AMQP cannot list queues or exchanges. Only with the management API URL do the Collection and Delivery magnifiers offer the list, and the Collection warns about a missing queue or one already consumed by another system. Without it, everything works — you just type the names.
Test Connection says which product answered, its version and the virtual host — and, with the management API, how many queues it sees. A Collection going down raises the RabbitMQ connection lost alert.
Collection — RABBITMQ_CONSUMER
| Field | What it is for |
|---|---|
| Queue | A queue that already exists on the broker. The magnifier lists the virtual host’s queues, with the number of messages and consumers. Accepts a {{NAME}} Variable, resolved when the Collection starts |
| Prefetch | How many messages the broker sends ahead without an ack (basic.qos). Empty = 10 |
| Include record metadata | On, the message becomes {queue, exchange, routingKey, redelivered, messageId, correlationId, contentType, timestamp, headers, value}; off, it is just the body. The metadata is recorded under “Sent” either way |
The screen warns when the queue does not exist and when it already has a consumer outside CMS — the messages would be split between them, and CMS would see only part. Two CMS Collections on the same queue of the same broker are refused for the same reason.
Ack only after storing
CMS stores one message at a time, in queue order, and only sends the ack to the broker after it is stored (at-least-once). Prefetch only saves network round trips — it does not parallelise. If the CMS database goes down, the Collection retries the same message; if the broker goes down, it reconnects on its own and checks the queue again before consuming again.
Delivery — RABBITMQ_PUBLISH
| Field | What it is for |
|---|---|
| Exchange | Target exchange, which must already exist. Empty = default exchange: the message goes straight to the queue named like the routing key. The magnifier lists the exchanges |
| Routing key | With the default exchange, it is the queue name (the magnifier lists the queues). With an exchange, it is the key its bindings match (plant.{{line}}.reading on a topic exchange). Accepts {{alias}}; an empty value is an error |
| Headers (JSON) | AMQP headers as {"name": "value"}; the value accepts {{alias}} |
| Persistent message | On by default. Writes the message to disk on the broker: in a durable queue, it survives a RabbitMQ restart |
| Require a destination queue (mandatory) | On by default. A message with no queue bound to the routing key comes back from the broker and the Delivery fails. Off, RabbitMQ confirms and silently discards it |
Every publish waits for the broker’s confirmation (publisher confirms): the Delivery is only
considered done when RabbitMQ confirms. The messageId is always the CMS message id — a retry repeats
the same one, so the consumer can drop duplicates.
What resolves against the input payload
Routing key and headers resolve {{alias}} against the input payload, before the Transformer.
Only the published body is the transformed one. The screen shows this hint under the fields and warns,
in amber, when an alias is not among the Input Parameters; the {} picker lists the input fields. It
is the same rule as Kafka and the
dynamic MQTT topic.
Common errors
| Message | Likely cause |
|---|---|
| “RabbitMQ refused the credentials” | Wrong user or password — or guest, which only gets in through localhost |
| “The user has no access to virtual host …” | The vhost does not exist, or the user has no permission on it |
| “Could not connect to RabbitMQ” | Host, port (5672, or 5671 with TLS), TLS or firewall |
| “The RabbitMQ TLS certificate could not be validated” | Internal CA: paste it into CA certificate |
| “Queue … does not exist in virtual host …” | CMS does not create queues — ask the broker administrator to create it and bind it to the exchange |
| “Queue … is exclusive to another connection” | Exclusive queue, or one with an active single consumer |
| “Queue … is already read by collection …” | Another CMS Collection already consumes that queue on the same broker |
| “Exchange … does not exist in virtual host …” | Wrong name, or the exchange has not been created yet |
| “RabbitMQ returned the message: no queue is bound to exchange …” | No binding for that routing key (with Require a destination queue on) |
| “Routing key with an empty value in …” | The alias is not in the input payload (before the Transformer) nor a Variable |
| “The management API refused the user” | The user lacks the monitoring (or management) tag |
Testing in the Test Bench
In the Test Bench, the Publish to source mode publishes the payload straight to the Collection’s queue (through the default exchange), whatever the broker’s exchange topology, and lets the Collection react through the normal path.