Skip to main content
RedisEventBridge publishes event payloads to a Redis channel and subscribes for inbound events on the same channel.

Go support

RedisEventBridge is not implemented in abxbus-go yet. Use JSONLEventBridge for the currently supported Go bridge.

Optional dependencies

Install the Redis extra (recommended):
Equivalent direct dependency install:

Constructor params

  • redis_url: redis URL in the form redis://user:pass@host:6379/<db>/<optional_channel>
  • channel: optional channel override (defaults to URL channel segment or abxbus_events)
  • name: optional bridge label

Setup with a bus

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 needs ioredis and Node.js.