A Moirae publisher leveraging RabbitMQ as a transport layer providing:
PUBLISHER
tokenEVENT_PUBSUB_ENGINE
tokenonModuleInit
onApplicationBootstrap
beforeApplicationShutdown
onApplicationShutdown
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.
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
To subscribe post-processing within the core application, simply create a queue and bind it to the pubsub exchange.
Generated using TypeDoc