This package has been deprecated

Author message:

Deprecated

resolve-bus-rabbitmq

0.19.8 • Public • Published

resolve-bus-rabbitmq

npm version

This package is a resolve-es adapter for emitting events using RabbitMQ (based on the amqplib package). It requires RabbitMQ to be installed on your machine.

Available Parameters

You can pass the following arguments when initializing an adapter:

  • url (required) - the RabbitMQ URL.
  • exchange - an exchange name. The default is exchange. Learn more
  • queueName - a queue name. The default is ''. Learn more
  • exchangeType - the exchange type. The default is fanout. Learn more
  • messageTtl - a message's lifetime. The default is 2000.
  • maxLength - the maximum number of messages the queue holds. The default is 10000.

Usage

import createAdapter from 'resolve-bus-rabbitmq'
 
const adapter = createAdapter({
  url: 'amqp://localhost'
})

Analytics

Dependencies (3)

Dev Dependencies (2)

Package Sidebar

Install

npm i resolve-bus-rabbitmq

Weekly Downloads

1

Version

0.19.8

License

MIT

Unpacked Size

29.3 kB

Total Files

30

Last publish

Collaborators

  • resolve-admin
  • reimagined-admin
  • vladihost
  • lykoi18