@orchesty/connector-rabbit-mq
v2.0.0
Published
[](https://www.npmjs.com/package/@orchesty/connector-rabbit-mq) [](https://github.com/Orchesty/orchesty-nodej
Readme
RabbitMQ Connector
An Orchesty connector for RabbitMQ, a distributed message broker system that is fast, scalable, and durable and uses AMQP for secure transfer of messages.
Application Type
Basic
This connector authenticates using an AMQP connection string (DSN). Unlike HTTP-based connectors, it communicates directly over the AMQP protocol using the @cloudamqp/amqp-client library. Connections are cached per application installation to minimize reconnection overhead.
| Field | Description |
|---|---|
| dsn | AMQP connection string (e.g. amqp://user:password@host:5672/vhost) |
Components
| Class | Type | Description |
|---|---|---|
| RabbitMqSendMessageCustomNode | Custom Node | Publishes a JSON message to a specified RabbitMQ queue over AMQP |
Setup
Credentials
- Ensure your RabbitMQ instance is running and accessible from Orchesty.
- Create a dedicated user with publish permissions on the target virtual host.
- Construct the AMQP DSN in the format:
amqp://username:password@hostname:5672/vhost - In Orchesty, open the RabbitMQ application settings and paste the DSN.
API Documentation
RabbitMQ Documentation: https://www.rabbitmq.com/docs/
Installation & Usage
Install the package:
npm install @orchesty/connector-rabbit-mq @orchesty/nodejs-sdk
# or
pnpm add @orchesty/connector-rabbit-mq @orchesty/nodejs-sdkRegister the application and nodes in your Orchesty DI container:
import { container } from '@orchesty/nodejs-sdk';
import RabbitMqApplication from '@orchesty/connector-rabbit-mq/dist/RabbitMqApplication';
import RabbitMqSendMessageCustomNode from '@orchesty/connector-rabbit-mq/dist/CustomNode/RabbitMqSendMessageCustomNode';
const app = new RabbitMqApplication();
container.setApplication(app);
container.setNode(new RabbitMqSendMessageCustomNode(), app);License
This connector is released under the Apache License 2.0. See the LICENSE file for the full license text.
Contributing
Contributions are welcome! This connector is part of the open-source Orchesty Node.js Connectors monorepo.
For guidelines on how to create or update connectors — including project setup, coding conventions, and how to write tests — please refer to the Contributing to Connectors guide.
All contributions should include:
- Source code in
src/following the existing connector structure - Tests in
src/**/__tests__/withinput.json,mock.json, andoutput.jsonfixtures - An updated
CHANGELOG.mdentry
