Skip to main content

Event Plugins

Event transports implement the EmitAdapter interface from @unchainedshop/events and are activated with setEmitAdapter() — they do not use the standard plugin registry. See Event System for the event API itself.

Import PathDescription
@unchainedshop/plugins/events/node-event-emitterIn-memory events (default, wired by the base preset)
@unchainedshop/plugins/events/redisDistributed events with Redis pub/sub
@unchainedshop/plugins/events/aws-eventbridgeAWS EventBridge integration (publish-only)

Choosing an Event Backend​

  • Node Event Emitter: Single-instance deployments. No external dependencies.
  • Redis: Multi-instance deployments that need distributed event handling.
  • AWS EventBridge: Routing events into AWS services. Combine it with a local emitter as shown in the registration example to retain audit logging and application subscriptions.