Sample Configuration
Configuration
The adapter to use for pub/sub distribution. Defaults to
modules::pubsub::LocalAdapter (in-memory) when not specified.Adapters
modules::pubsub::LocalAdapter
In-memory pub/sub using broadcast channels. Messages are delivered only to subscribers running in the same engine process. No external dependencies required.modules::pubsub::RedisAdapter
Uses Redis Pub/Sub as the backend. Enables event delivery across multiple engine instances.Configuration
Functions
Trigger Type
This module adds a new Trigger Type:subscribe.
Subscribe Event Payload
The handler receives the raw value passed asdata to the publish call. No envelope is added.
Sample Code
- TypeScript
- Python
- Rust
Usage Example: Fanout Notification
One publisher triggers two independent subscribers on the same topic:- TypeScript
- Python
- Rust