Raduz.KafkaClient.Publisher 3.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Raduz.KafkaClient.Publisher --version 3.0.0
NuGet\Install-Package Raduz.KafkaClient.Publisher -Version 3.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Raduz.KafkaClient.Publisher" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Raduz.KafkaClient.Publisher --version 3.0.0
#r "nuget: Raduz.KafkaClient.Publisher, 3.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Raduz.KafkaClient.Publisher as a Cake Addin
#addin nuget:?package=Raduz.KafkaClient.Publisher&version=3.0.0

// Install Raduz.KafkaClient.Publisher as a Cake Tool
#tool nuget:?package=Raduz.KafkaClient.Publisher&version=3.0.0

| _ \ / \ | _ | | | |__ / | |/ /__ _ / | | ____ _ / | () ___ _ __ | | | _ \ _ | | | ()| | ___ _ __ | |) | / _ \ | | | | | | | / / | ' // | |_| |/ / _ | | | | |/ _ \ ' | | | |) | | | | ' | | / _| ' \ / _ \ '| | _ < / ___ | || | || |/ /_ | . \ (| | | < (| | || | | / | | | | | __/| || | |) | | _ \ | | | / |
|| _// __
_/ _
//()|__,|| ||__,|_|||___|| ||_()| _,|.__/|||/| ||_|_|

How to use:

  1. Add settings to your appsettings.json: KafkaClientProducerConfig - inherits from https://docs.confluent.io/platform/current/clients/confluent-kafka-dotnet/_site/api/Confluent.Kafka.ProducerConfig.html + AllowCreateTopic - create topic, if there is non while publishing

    SchemaRegistryConfig https://docs.confluent.io/platform/current/clients/confluent-kafka-dotnet/_site/api/Confluent.SchemaRegistry.SchemaRegistryConfig.html

  2. Register ConfigureKafkaConsumer and ConfigureKafkaPublisher to services container

    Publisher is used like:

    var publisher = app.Services.GetService<IKafkaPublisher>()!; // or some other way to obtain await publisher.PublishAsync("{TOPIC-NAME}", "{SOME-KEY}", {YOUR-AVRO-OBJECT}, cancellationToken);

  3. Implement Exception handlers

    For Publisher implement IPublisherExceptionHandler

  4. Enjoy easily used package 😃

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Raduz.KafkaClient.Publisher:

Package Downloads
Raduz.KafkaClient.Client

Easy to use Kafka client using AVRO schema

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.0.1 299 2/17/2023
4.0.0 584 10/31/2022
3.0.0 477 10/31/2022
2.0.3 440 10/30/2022
2.0.2 462 10/30/2022
2.0.1 480 10/24/2022
2.0.0 468 10/24/2022
1.0.1 441 10/24/2022
1.0.0 529 10/23/2022