New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@moirae/rabbitmq

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@moirae/rabbitmq

A Moirae publisher leveraging RabbitMQ as a transport layer providing: - RabbitMQConnection: a connection instance for RabbitMQ. Can be resused (e.g. PubSub) - RabbitMQPublisher: Override the default `PUBLISHER` token - RabbitPubSubEngine: Override the de

  • 0.6.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

@moirae/rabbitmq

A Moirae publisher leveraging RabbitMQ as a transport layer providing:

  • RabbitMQConnection: a connection instance for RabbitMQ. Can be resused (e.g. PubSub)
  • RabbitMQPublisher: Override the default PUBLISHER token
  • RabbitPubSubEngine: Override the default EVENT_PUBSUB_ENGINE token

Lifecycle

onModuleInit

  • Initialize connection to RabbitMQ

onApplicationBootstrap

  • Initialize RabbitMQPublisher
  • Initialize RabbitPubSubEngine

beforeApplicationShutdown

  • Tear down RabbitMQPublisher
  • Tear down RabbitPubSubEngine

onApplicationShutdown

  • Tear down connection to RabbitMQ

External Systems

In cases where events should be published externally to the application (in the case of analytics for instance), there are two ways to subscribe to the event stream.

Pre-processing

To subscribe pre-processing, meaning before the core application has processed but after storing the event, first create a queue for the service and bind the queue to the event store exchange.

Related: Fanout Exchange

Post-processing

To subscribe post-processing within the core application, simply create a queue and bind it to the pubsub exchange.

FAQs

Package last updated on 21 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc