Skip to content

Connectum API Reference / @connectum/events-redis / types / RedisBrokerOptions

Interface: RedisBrokerOptions

Defined in: types.ts:38

Redis Streams broker tuning options.

Properties

blockMs?

readonly optional blockMs: number

Defined in: types.ts:56

Block timeout in milliseconds for XREADGROUP.

How long the consumer blocks waiting for new messages before retrying the loop.

Default

ts
5000

count?

readonly optional count: number

Defined in: types.ts:63

Number of messages to read per XREADGROUP call.

Default

ts
10

maxLen?

readonly optional maxLen: number

Defined in: types.ts:46

Maximum stream length (MAXLEN approximate for XADD).

When set, older entries are trimmed on publish.

Default

ts
undefined (no limit)