Azure Event Hubs Endpoint

Consume and produce event streams from Event Hubs with partition controls.

Consumer Groups

Use dedicated consumer groups for predictable test isolation.

Feature Usage Samples

How to use snippets for Azure Event Hubs 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.

Event Hubs Endpoint

var endpoint = new AzureEventHubsEndpointDefinition
{
    Name = "eh-out",
    Mode = TrafficEndpointMode.Consume,
    TrackingField = TrackingFieldSelector.Parse("json:$.trackingId"),
    ConnectionString = "<connection-string>",
    EventHubName = "orders"
};

Body Example

ConnectionString

Specifies how the adapter connects to the Event Hubs namespace.

EventHubName

Specifies which Event Hub the adapter should write to or read from.

PartitionId

Optionally targets a specific partition for consumer-side reads.

TrackingField

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

{ "trackingId": "trk-1" }

Diagram

Azure Event Hubs flow diagram
Event Hubs producer and consumer endpoints support the same correlation contract as other transports.