Sample Configuration
Configuration
The adapter to use for pub/sub distribution. Defaults to
local (in-memory) when not specified.Adapters
local
In-memory pub/sub using broadcast channels. Messages are delivered only to subscribers running in the same engine process. No external dependencies required.redis
Uses Redis Pub/Sub as the backend. Enables event delivery across multiple engine instances.Configuration
The URL of the Redis instance to use.
Functions
Trigger Type
This worker 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.
The exact value published to the topic. Shape is determined entirely by the publisher.
Sample Code
- TypeScript
- Python
- Rust
Usage Example: Fanout Notification
One publisher triggers two independent subscribers on the same topic:- TypeScript
- Python
- Rust