interface RPCRedisBrokerOptions

export interface RPCRedisBrokerOptions extends RedisBrokerOptions

Options specific for an RPC Redis broker

optional
blockTimeout? : number

How long to block for messages when polling

Inherited from: RedisBrokerOptions

optional
decode? : (data: Buffer) => unknown

Function to use for decoding messages

Inherited from: BaseBrokerOptions

optional
encode? : (data: unknown) => Buffer

Function to use for encoding messages

Inherited from: BaseBrokerOptions

Consumer group name to use for this broker. For fanning out events, use kUseRandomGroupName

Inherited from: RedisBrokerOptions

See also: https://redis.io/commands/xreadgroup/

optional
maxChunk? : number

Max number of messages to poll at once

Inherited from: RedisBrokerOptions

optional
maxDeliveredTimes? : number

How many times a message can be delivered to a consumer before it is considered dead. This is used to prevent messages from being stuck in the queue forever if a consumer is unable to process them.

Inherited from: RedisBrokerOptions

optional
messageIdleTime? : number

How long a message should be idle for before allowing it to be claimed by another consumer. Note that too high of a value can lead to a high delay in processing messages during a service downscale, while too low of a value can lead to messages being too eagerly claimed by other consumers during an instance restart (which is most likely not actually that problematic)

Inherited from: RedisBrokerOptions

name : string

Unique consumer name.

Inherited from: RedisBrokerOptions

See also: https://redis.io/commands/xreadgroup/

optional
timeout? : number