AMQP (RabbitMQ)
AMQP is an open standard application layer protocol for message-oriented communication, i.e. implemented by RabbitMQ message-broker.
Installation
$ yarn add amqplib amqp-connection-managerOverview
import { createMicroservice, Transport } from '@marblejs/messaging';
const microservice = createMicroservice({
transport: Transport.AMQP,
options: {
host: 'amqp://localhost:5672',
queue: 'hello_queue',
queueOptions: { durable: false },
},
// ...
});import { MessagingClient, createMicroservice, Transport } from '@marblejs/messaging';
const client = MessagingClient({
transport: Transport.AMQP,
options: {
host: 'amqp://localhost:5672',
queue: 'hello_queue',
},
// ...
});Attribute
description
Acknowledgement
Last updated