AMQP

AMQP

Type: Point to Point

Sends and receives messages using the AMQP protocol.

Installation

npm install amqplib

Usage

import { amqp } from '@adaloop/tellthem/drivers/amqp'
...
buses: {
amqp: {
driver: amqp({
protocol: 'amqp',
hostname: 'localhost',
port: 5672,
username: 'guest',
password: 'guest',
})
}
}
...

Options

For more detailed options, feel free to check the amqplib documentation for more details about the configuration.

OptionDescriptionDefault
protocolThe protocol used to connect.amqp
hostnameThe hostname of the amqp broker.N/A
portThe port of the amqp broker.5672
usernameThe username to connect on the amqp broker.N/A
passwordThe password to connect on the amqp broker.N/A

On this page