RedisEventBridge publishes event payloads to a Redis channel and subscribes for inbound events on the same channel.
Optional dependencies
- Python
- TypeScript
Install the Redis extra (recommended):Equivalent direct dependency install:
Constructor params
redis_url: redis URL in the formredis://user:pass@host:6379/<db>/<optional_channel>channel: optional channel override (defaults to URL channel segment orbubus_events)name: optional bridge label
- Python
- TypeScript
Setup with a bus
- Python
- TypeScript
Behavior
emit(...)publishes serialized event JSON to the configured Redis channel.on(...)subscribes handlers for inbound messages and auto-starts the Redis subscriber.- Incoming messages are parsed into events, reset, then emitted on the bridge’s internal bus.
close()unsubscribes and closes Redis clients.- Runtime requirements: Python needs
redis(redis.asyncio), TypeScript needsioredisand Node.js.