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
Default
Default batching options.
public static BatchingOptions Default { get; }
Property Value
EnableCompression
Gets or sets whether to enable compression for batched payloads. Default: false.
public bool EnableCompression { get; init; }
Property Value
EnableTimeBasedFlushing
Gets or sets whether to enable automatic time-based flushing. Default: true.
public bool EnableTimeBasedFlushing { get; init; }
Property Value
MaxBatchDelay
Gets or sets the maximum time to wait before flushing a batch. Default: 100ms.
public TimeSpan MaxBatchDelay { get; init; }
Property Value
MaxBatchSize
Gets or sets the maximum number of messages per batch. Default: 100.
public int MaxBatchSize { get; init; }
Property Value
MaxPayloadBytes
Gets or sets the maximum payload size per batch in bytes. Default: 1MB.
public long MaxPayloadBytes { get; init; }