Table of Contents

Class BatchingOptions

Namespace
DotCompute.Abstractions.Messaging
Assembly
DotCompute.Abstractions.dll

Configuration options for message batching.

public sealed class BatchingOptions
Inheritance
BatchingOptions
Inherited Members

Properties

CompressionThreshold

Gets or sets the compression threshold in bytes. Only compress batches larger than this size. Default: 1KB.

public long CompressionThreshold { get; init; }

Property Value

long

Default

Default batching options.

public static BatchingOptions Default { get; }

Property Value

BatchingOptions

EnableCompression

Gets or sets whether to enable compression for batched payloads. Default: false.

public bool EnableCompression { get; init; }

Property Value

bool

EnableTimeBasedFlushing

Gets or sets whether to enable automatic time-based flushing. Default: true.

public bool EnableTimeBasedFlushing { get; init; }

Property Value

bool

MaxBatchDelay

Gets or sets the maximum time to wait before flushing a batch. Default: 100ms.

public TimeSpan MaxBatchDelay { get; init; }

Property Value

TimeSpan

MaxBatchSize

Gets or sets the maximum number of messages per batch. Default: 100.

public int MaxBatchSize { get; init; }

Property Value

int

MaxPayloadBytes

Gets or sets the maximum payload size per batch in bytes. Default: 1MB.

public long MaxPayloadBytes { get; init; }

Property Value

long