Skip to content

About

.NET client for the Fluvio streaming platform, built on the official Rust client through FFI

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Fluvio.Client - .NET Client for Fluvio

Build Status NuGet

A .NET client library for Fluvio, the distributed streaming platform. It wraps the official fluvio Rust client through a thin, hand-written Rust FFI layer, so protocol handling, retries, and cluster discovery are all delegated to the same client the Fluvio project itself maintains. See docs/architecture.md for how the FFI layer works.

Features

  • Producer API - Send single records, batches, and route across partitions with a custom IPartitioner
  • Consumer API - Stream records via IAsyncEnumerable, or fetch bounded batches, with offset persistence (manual or auto-commit)
  • Admin API - Create, delete, list, and inspect topics programmatically
  • Cross-platform - NuGet package bundles native binaries for linux-x64, osx-arm64, osx-x64, and win-x64

Installation

dotnet add package Fluvio.Client

Quick Start

using System.Text;
using Fluvio.Client;
using Fluvio.Client.Abstractions;

await using var client = await FluvioClient.ConnectAsync();

var producer = client.Producer();
var offset = await producer.SendAsync("my-topic", Encoding.UTF8.GetBytes("Hello, Fluvio!"));

var consumer = client.Consumer();
await foreach (var record in consumer.StreamAsync("my-topic", offset: 0))
{
    Console.WriteLine($"[{record.Offset}] {Encoding.UTF8.GetString(record.Value.Span)}");
    break;
}

For a full walkthrough (topics, batching, offsets, JSON payloads, error handling), see docs/getting-started.md.

Documentation

Development

# Build (also builds the native library in debug mode)
dotnet build

# Unit tests (no cluster required)
dotnet test --filter "FullyQualifiedName!~Integration"

# Integration tests (requires a running Fluvio cluster)
dotnet test --filter "FullyQualifiedName~Integration"

# Benchmarks (requires a running Fluvio cluster)
cd benchmarks/Fluvio.Client.Benchmarks && dotnet run -c Release

See AGENTS.md for a fuller build/test/architecture reference, common gotchas, and known gaps.

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

License

No LICENSE file is currently checked into this repository — treat the project as unlicensed (all rights reserved) until one is added.

Disclaimer

This is an unofficial client. For official client libraries, see the Fluvio documentation.

About

.NET client for the Fluvio streaming platform, built on the official Rust client through FFI

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages