JorgeCostaMacia.Bus.Kafka.HealthChecks 3.2.2

Prefix Reserved
dotnet add package JorgeCostaMacia.Bus.Kafka.HealthChecks --version 3.2.2
                    
NuGet\Install-Package JorgeCostaMacia.Bus.Kafka.HealthChecks -Version 3.2.2
                    
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="JorgeCostaMacia.Bus.Kafka.HealthChecks" Version="3.2.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JorgeCostaMacia.Bus.Kafka.HealthChecks" Version="3.2.2" />
                    
Directory.Packages.props
<PackageReference Include="JorgeCostaMacia.Bus.Kafka.HealthChecks" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add JorgeCostaMacia.Bus.Kafka.HealthChecks --version 3.2.2
                    
#r "nuget: JorgeCostaMacia.Bus.Kafka.HealthChecks, 3.2.2"
                    
#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.
#:package JorgeCostaMacia.Bus.Kafka.HealthChecks@3.2.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=JorgeCostaMacia.Bus.Kafka.HealthChecks&version=3.2.2
                    
Install as a Cake Addin
#tool nuget:?package=JorgeCostaMacia.Bus.Kafka.HealthChecks&version=3.2.2
                    
Install as a Cake Tool

JorgeCostaMacia.Bus.Kafka.HealthChecks

Health check for JorgeCostaMacia.Bus.Kafka — reports whether the bus reaches the Kafka brokers, for ASP.NET Core health endpoints (liveness/readiness). No probe connection, no extra I/O: the check reads a reachability tracker the transport already feeds — the client's all brokers down signal flips it down, any successful produce or consumed delivery flips it back up. A separate package so the transport stays free of the HealthChecks dependency.

NuGet Downloads Build License


Install

dotnet add package JorgeCostaMacia.Bus.Kafka.HealthChecks

Usage

One AddKafkaBus call plugs the check onto the standard health-check pipeline — after AddBusContext, which registers the reachability tracker the check reads. Tag it (typically "ready") to pick which health endpoints run it.

services.AddBusContext(configuration,
    producer => producer.AddCommand<PlaceOrder>("orders"));

services.AddHealthChecks().AddKafkaBus(tags: ["ready"]);

The check reports:

  • Healthy — the bus reaches the brokers, or nothing has been observed yet: an untouched bus counts as reachable, so a service that has not produced or consumed is not a failure.
  • The registration's failure status (Unhealthy by default; pass failureStatus to soften it) — the client reported every broker down (librdkafka's all brokers down); the client keeps reconnecting on its own, and the first successful produce or consumed delivery flips the check back to healthy. The result's data carries the UTC instant of the flip under changedAt, so the endpoint shows how long the outage has held.

A single failed produce does not flip the check — only the client's whole-broker-set signal does; per-message failures belong to the bus's retry and parking lanes.

The check registers under the name bus-kafka (override it with name when one service runs several buses).

Requirements

One of the following SDKs: .NET 8 / 9 / 10 (.NET 10 recommended).

Brings JorgeCostaMacia.Bus.Kafka (the bus over Kafka) and Microsoft.Extensions.Diagnostics.HealthChecks transitively.

About

JorgeCostaMacia.Bus.Kafka.HealthChecks is part of bus-net — messaging building blocks, each scoped to a single concern.

Author: Jorge Costa Maciá

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.2.2 78 7/22/2026
3.2.1 78 7/22/2026
3.2.0 81 7/21/2026
3.1.0 88 7/20/2026
3.0.0 89 7/19/2026
2.0.1 94 7/15/2026
2.0.0 90 7/14/2026