Streamiz Kafka .NET is .NET stream processing library for Apache Kafka.
KAFKA is a registered trademark of The Apache Software Foundation and
has been licensed for use by Streamiz. Streamiz has no
affiliation with and is not endorsed by The Apache Software Foundation.
It's allowed to develop .NET applications that transform input Kafka topics into output Kafka topics. It's supported .NET Standard 2.1. It's a rewriting inspired by Kafka Streams.
Waiting run task is complete. The task is consider complete some seconds after viewing this message "π Enjoy Streamiz the .NET Stream processing library for Apache Kafka (TM)"
Switch to producer
terminal and send sentences or word. The sample case is "Count the number words" similar to here
Switch to consumer
terminal and check aggregation result
- 1.4.0 - Async processor, Processor API
- 1.5.0 - Interactive Queries, Standby Replica
Read the full documentation on https://lgouellec.github.io/kafka-streams-dotnet/
Nuget packages are listed to nuget.org
Install the last version with :
dotnet add package Streamiz.Kafka.Net
There, a sample streamiz application :
static async System.Threading.Tasks.Task Main(string[] args)
{
var config = new StreamConfig<StringSerDes, StringSerDes>();
config.ApplicationId = "test-app";
config.BootstrapServers = "localhost:9092";
StreamBuilder builder = new StreamBuilder();
var kstream = builder.Stream<string, string>("stream");
var ktable = builder.Table("table", InMemory<string, string>.As("table-store"));
kstream.Join(ktable, (v, v1) => $"{v}-{v1}")
.To("join-topic");
Topology t = builder.Build();
KafkaStream stream = new KafkaStream(t, config);
Console.CancelKeyPress += (o, e) => {
stream.Dispose();
};
await stream.StartAsync();
}
Maintainers:
Streamiz Kafka .Net is a community project. We invite your participation through issues and pull requests! You can peruse the contributing guidelines.
When adding or changing a service please add tests and documentations.
You can found support here