Redis Sub Trigger icon

Redis Sub Trigger

Emit items when new entries appear in a Redis Stream (XREAD)

Redis Sub Trigger

AI-generated

Summary

Emit items when new entries appear in a Redis Stream (XREAD). Optionally emit existing entries up to a configurable age on start.

Inputs

None.

Output shape

main

Each emitted item has the shape { json: { payload: , _stream: , _id: } }

Examples

Example 1: Normal trigger (staleSeconds = 0)

Only entries arriving after the node starts are emitted.

Example 2: Backfill on start (staleSeconds > 0)

On activation, the node also emits entries that are no older than the given number of seconds.

Discussion