interface ConsumeOptions

Options for consuming events.

Type Parameters

Cursor = string

Properties

Abort signal to cancel consumption.

optional
cursor: Cursor | null

Cursor to resume from. If null, starts from the beginning.

optional
batchSize: number

Maximum number of events per batch. Defaults to adapter-specific value.

optional
bufferSize: number

Maximum number of batches to buffer. Defaults to adapter-specific value. When the buffer is full, new batches will be dropped and onError will be called with an EventLogConsumeFailed error.

Usage

import { type ConsumeOptions } from ".";