Skip to main content

RabbitMQ

The RabbitMQ Transport is used to communicate to RabbitMQ. It is suitable for development, testing, and production environments.

Configuration

To use the RabbitMQ Transport, define it under transports and reference it as current-transport.

Example

current-transport: local-rabbitmq

transports:
- name: local-rabbitmq
rabbitmq-transport-config:
amqp-connection-string: amqp://localhost

rabbitmq-transport-config Fields

FieldRequiredTypeDefaultDescription
amqp-connection-stringYesstringFull AMQP connection string used to connect to RabbitMQ.
routing-toplogyNostringconventionalRouting toplogy to be used (Conventional or Direct).
queue-typeNostringquorumType of queues RabbitMQ is using (Quorum or Classic).
management-apiNoobjectOptional configuration to connect to the RabbitMQ Management API.

management-api Fields

FieldRequiredTypeDefaultDescription
urlNostringBase URL for the RabbitMQ Management API. Example: http://localhost:15672.
usernameNostringUsername for authenticating with the Management API. If username is provided, password must also be provided.
passwordNostringPassword for authenticating with the Management API. If password is provided, username must also be provided.

Field Details

amqp-connection-string (required)

A standard AMQP URI used to connect to RabbitMQ.

Examples:

amqp-connection-string: amqp://guest:guest@localhost:5672/
amqp-connection-string: amqps://user:[email protected]:5671/my-vhost

routing-topology (optional)

The Routing topology to be used for the transport

Examples:

routing-toplogy: conventional
routing-toplogy: direct

queue-type (optional)

The type of queues being used.

Examples:

queue-type: quorum
queue-type: classic

management-api (optional)

Allows Busly to interact with the RabbitMQ Management API for monitoring or queue management.

Examples:

management-api:
url: http://localhost:15672
management-api:
username: admin
password: hello123!
management-api:
url: http://localhost:15672
username: admin
password: hello123!