Table of Contents

Class KafkaCloudEventProducerOptions

Namespace
Excalibur.Dispatch.Transport.Kafka
Assembly
Excalibur.Dispatch.Transport.Kafka.dll

Producer settings for Kafka CloudEvent publishing including reliability, compression, and transaction configuration.

public sealed class KafkaCloudEventProducerOptions
Inheritance
KafkaCloudEventProducerOptions
Inherited Members
Extension Methods

Properties

AcknowledgmentLevel

Gets or sets the acknowledgment level for message publishing.

public KafkaAckLevel AcknowledgmentLevel { get; set; }

Property Value

KafkaAckLevel

The acknowledgment level for message publishing.

Remarks

All: Wait for all in-sync replicas (highest durability) Leader: Wait for leader replica only (balanced) None: Fire and forget (highest performance, lowest durability).

CompressionThreshold

Gets or sets the threshold (in bytes) for triggering compression.

public int CompressionThreshold { get; set; }

Property Value

int

The threshold (in bytes) for triggering compression.

CompressionType

Gets or sets the compression algorithm to use.

public KafkaCompressionType CompressionType { get; set; }

Property Value

KafkaCompressionType

The compression algorithm to use.

EnableCompression

Gets or sets a value indicating whether to enable compression for large CloudEvents.

public bool EnableCompression { get; set; }

Property Value

bool

A value indicating whether to enable compression for large CloudEvents.

EnableIdempotentProducer

Gets or sets a value indicating whether to enable idempotent producer for exactly-once semantics.

public bool EnableIdempotentProducer { get; set; }

Property Value

bool

A value indicating whether to enable idempotent producer for exactly-once semantics.

EnableTransactions

Gets or sets a value indicating whether to enable transactional messaging.

public bool EnableTransactions { get; set; }

Property Value

bool

A value indicating whether to enable transactional messaging.

MaxMessageSizeBytes

Gets or sets the maximum message size for Kafka CloudEvents.

public int MaxMessageSizeBytes { get; set; }

Property Value

int

The maximum message size for Kafka CloudEvents.

Remarks

Default Kafka broker setting is typically 1MB. Adjust based on your broker configuration.

RetrySettings

Gets or sets the producer retry settings.

public KafkaRetryOptions RetrySettings { get; set; }

Property Value

KafkaRetryOptions

The producer retry settings.

TransactionalId

Gets or sets the transactional ID for exactly-once processing.

public string? TransactionalId { get; set; }

Property Value

string

The transactional ID for exactly-once processing.