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 Path | Description |
|---|---|
@unchainedshop/plugins/events/node-event-emitter | In-memory events (default, wired by the base preset) |
@unchainedshop/plugins/events/redis | Distributed events with Redis pub/sub |
@unchainedshop/plugins/events/aws-eventbridge | AWS 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.