method QueueAdapter.sendBatch
QueueAdapter.sendBatch<T>(
queue: string,
data: T[],
options?: SendOptions
): Promise<string[]>

Send a batch of messages to the specified queue. Implementation should optimize this operation if possible (e.g. using pipelines or batch APIs).

Type Parameters

Parameters

queue: string

Name of the destination queue.

data: T[]

Array of payloads to send.

optional
options: SendOptions

Delivery options applied to all messages in the batch.

Return Type

Promise<string[]>

Array of unique IDs assigned to the messages.

Usage

import { type QueueAdapter } from ".";