Kafka Endpoint

Connect with Confluent-compatible settings, SASL, TLS, and consumer group options.

SASL Mechanisms

All common SASL mechanisms are supported through endpoint configuration. For non-OAuth SASL modes, username is required and password may be empty (null is rejected).

Topics and Groups

Specify topic and consumer group for destination correlation.

Confluent Settings Map

Use ConfluentSettings dictionary to pass extra Kafka client properties directly to producer/consumer config when default fields are not enough.

SASL Advanced Fields

KafkaSaslOptions includes OAuthBearerTokenEndpointUrl for OAuth bearer mode and AdditionalSettings for mechanism-specific values.

Feature Usage Samples

How to use snippets for Kafka Endpoint.

Switch between C#, Java, Python, TypeScript, and JavaScript to see the native SDK shape for this sample.

Licensing note: every runnable sample requires a valid runner key via WithRunnerKey("...") or config key LoadStrike:RunnerKey.

Kafka Endpoint

var endpoint = new KafkaEndpointDefinition
{
    Name = "kafka-out",
    Mode = TrafficEndpointMode.Consume,
    TrackingField = TrackingFieldSelector.Parse("header:X-Correlation-Id"),
    BootstrapServers = "localhost:9092",
    Topic = "orders.events",
    ConsumerGroupId = "orders-tests"
};

Body Example

BootstrapServers

Specifies the Kafka brokers the producer or consumer should connect to.

Topic

Specifies the Kafka topic used for produce or consume mode.

ConsumerGroupId

Required for consume mode so Kafka can track offsets for the LoadStrike consumer group.

TrackingField

Points to the header or body field that carries the correlation id.

Security options

Use SecurityProtocol, SASL settings, and ConfluentSettings when the broker requires authenticated or custom client configuration.

{ "trackingId": "trk-1", "status": "completed" }

Diagram

Kafka protocol correlation diagram
Kafka producer and consumer endpoints correlate by tracking field with optional GatherByField grouping.