Streamiz Kafka .NET is .NET stream processing library for Apache Kafka.
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.
Finally it will provide the same functionality as Kafka Streams.
This project is being written. Thanks for you contribution !
- End May 2020 - Beta 0.1.0 - All stateless processors, Exactly Once Semantic, InMemory store
- End July 2020 - Beta 0.2.0 - Statefull processors (count, reduce, aggregate), Global Store
- End September 2020 - 1.0.0 - Join statefull processors (Only KStream INNER, LEFT AND OUTER JOIN)
- End October 2020 - 1.1.0 - FULL Join statefull processors (KTable join)
- End November 2020 - 1.2.0 - Persistent state store (eg: RocksDB Store), Repartition and Changelog topics
- End 2020 / Begin 2021 - 1.3.0 - Processor API, Metrics, 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 --version 1.0.0
There, a sample streamiz application :
static void Main(string[] args)
{
CancellationTokenSource source = new CancellationTokenSource();
var config = new StreamConfig<StringSerDes, StringSerDes>();
config.ApplicationId = "test-app";
config.BootstrapServers = "192.168.56.1:9092";
config.SaslMechanism = SaslMechanism.Plain;
config.SaslUsername = "admin";
config.SaslPassword = "admin";
config.SecurityProtocol = SecurityProtocol.SaslPlaintext;
config.AutoOffsetReset = AutoOffsetReset.Earliest;
config.NumStreamThreads = 2;
StreamBuilder builder = new StreamBuilder();
var kstream = builder.Stream<string, string>("stream");
var ktable = builder.Table("table", InMemory<string, string>.As("table-store"));
kstream.Join<string, string, StringSerDes, StringSerDes>(ktable, (v, v1) => $"{v}-{v1}")
.To("join-topic");
Topology t = builder.Build();
KafkaStream stream = new KafkaStream(t, config);
Console.CancelKeyPress += (o, e) => {
source.Cancel();
stream.Close();
};
stream.Start(source.Token);
}
- Global state store
- Refactor Subtopology & StreamTask assignment
- Refactor Topology description for corresponding to java implementation
- Refactor Partition grouper + record queue
- [WIP] Statefull processors impl
- Transform and Through Processor
- Supress Processor (.suppress(Suppressed.untilWindowCloses(Suppressed.BufferConfig.unbounded())))
- Rocks DB state implementation
- Changelog Topic
- Task restoring
- Repartition topic
- Repartition Processor
- Processor API
- Optimizing Kafka Streams Topologies
- Standby Replica
- Interactive Queries
- Metrics
Owners:
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