-
Notifications
You must be signed in to change notification settings - Fork 1
queue amqp Overview
GitHub Action edited this page Apr 21, 2026
·
2 revisions
The AMQP (Advanced Message Queuing Protocol) adapter for @quatrain/queue.
This adapter enables communication with AMQP 0-9-1 brokers such as RabbitMQ. It is ideal for high-throughput, low-latency messaging requirements where you have full control over the broker infrastructure.
npm install @quatrain/queue-amqp amqplib
# or
yarn add @quatrain/queue-amqp amqplibRegister the adapter by providing the connection URL for your AMQP broker.
import { Queue } from '@quatrain/queue'
import { AmqpQueueAdapter } from '@quatrain/queue-amqp'
const amqpAdapter = new AmqpQueueAdapter({
config: {
url: 'amqp://user:password@localhost:5672',
// Optional: specify an exchange if not using default
exchange: 'quatrain-exchange'
}
})
Queue.addAdapter('rabbitmq', amqpAdapter, true)For concrete examples and usage guides, please refer to the How-To Guide.
AGPL-3.0-only