Send with confidence
From your first message to batching, idempotence, and transactions.
Dekaf / The pure C# Apache Kafka client
All the Kafka.
Right at home in .NET.
Produce, consume, and work with Kafka through a fully managed client. Built in C#, from the fluent API to the wire protocol.
Start buildingExplore the sourceStart with a broker address and a topic. Fluent builders and async streams make the rest feel familiar.
dotnet add package Dekaf
using Dekaf;
await using var producer = await Kafka
.CreateProducer<string, string>()
.WithBootstrapServers("localhost:9092")
.BuildAsync();
await producer.ProduceAsync(
"greetings", "hello", "Hello, Kafka!");
using Dekaf;
await using var consumer = await Kafka
.CreateConsumer<string, string>()
.WithBootstrapServers("localhost:9092")
.WithGroupId("greeting-reader")
.SubscribeTo("greetings")
.BuildAsync();
await foreach (var message in consumer.ConsumeAsync())
{
Console.WriteLine(message.Value);
}
Connect to your local Kafka broker at localhost:9092.
From your first message to batching, idempotence, and transactions.
Read async streams, share work across groups, and take control of offsets.
Plug in serializers, compression, and the .NET services you already use.
Spans, pooled buffers, and ValueTask keep allocations off the hot path. Explore the benchmarks and the decisions behind the performance.