RabbitMQ
Synopsis
Creates a consumer that connects to RabbitMQ servers and consumes messages from specified exchanges and queues. Supports multiple authentication methods, exchange types, TLS encryption, and multiple workers with automatic message acknowledgment.
Schema
- id: <numeric>
name: <string>
description: <string>
type: rabbitmq
tags: <string[]>
pipelines: <pipeline[]>
status: <boolean>
properties:
address: <string>
port: <numeric>
username: <string>
password: <string>
authentication: <string>
exchange:
name: <string>
type: <string>
queue:
name: <string>
key: <string>
reuse: <boolean>
workers: <numeric>
tls:
status: <boolean>
cert_name: <string>
key_name: <string>
Configuration
Device
| Field | Required | Default | Description |
|---|---|---|---|
id | Y | - | Unique numeric identifier |
name | Y | - | Device name |
description | N | - | Optional description |
type | Y | - | Must be rabbitmq |
tags | N | - | Optional tags |
pipelines | N | - | Optional pre-processor pipelines |
status | N | true | Enable/disable the device |
Connection
| Field | Required | Default | Description |
|---|---|---|---|
address | N | "0.0.0.0" | RabbitMQ server address |
port | Y | - | RabbitMQ server port |
username | N | - | Authentication username |
password | N | - | Authentication password |
authentication | Y | - | Auth type (plain, amqplain) |
Exchange
| Field | Required | Default | Description |
|---|---|---|---|
exchange.name | Y | - | Exchange name |
exchange.type | Y | - | Exchange type (direct, fanout, topic, x-custom) |
Supported exchange types:
| Exchange Type | Description |
|---|---|
direct | Exact routing key match |
fanout | Broadcast to all bound queues |
topic | Pattern-based routing using wildcards (*, #) |
x-custom | Custom exchange plugin registered on the broker |
Queue
| Field | Required | Default | Description |
|---|---|---|---|
queue.name | Y | - | Queue name |
queue.key | Y | - | Routing key pattern |
TLS
| Field | Required | Default | Description |
|---|---|---|---|
tls.status | N | false | Enable TLS encryption |
tls.cert_name | Y* | - | TLS certificate file name |
tls.key_name | Y* | - | TLS private key file name |
* = Conditionally required when tls.status is true.
The TLS certificate and key files must be placed in the service root directory.
Performance
| Field | Required | Default | Description |
|---|---|---|---|
reuse | N | true | Enable multi-worker mode |
workers | N | 4 | Number of worker processes when reuse enabled (capped at the number of available CPU cores) |
Examples
Basic
Creating a simple RabbitMQ consumer with a direct exchange... | |
Secure
Connecting with authentication and TLS encryption... | |
High-Volume
Optimizing for high throughput with multi-worker mode... | |
Topic Exchange
Pattern-based routing on a topic exchange... | |
Topic routing keys support * and # wildcards for single and multiple words respectively.
Pipelines
Applying custom processing to messages... | |
Pipelines are processed sequentially, and can modify or drop messages before ingestion.