Naravel.Queue.Kafka 0.2.0

dotnet add package Naravel.Queue.Kafka --version 0.2.0
                    
NuGet\Install-Package Naravel.Queue.Kafka -Version 0.2.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="Naravel.Queue.Kafka" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Naravel.Queue.Kafka" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Naravel.Queue.Kafka" />
                    
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 Naravel.Queue.Kafka --version 0.2.0
                    
#r "nuget: Naravel.Queue.Kafka, 0.2.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.
#:package Naravel.Queue.Kafka@0.2.0
                    
#: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=Naravel.Queue.Kafka&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Naravel.Queue.Kafka&version=0.2.0
                    
Install as a Cake Tool

Naravel.Queue.Kafka

NuGet Downloads .NET 10 License: MIT

Kafka queue driver for Naravel.Queue, built on Confluent.Kafka. Kafka is a log rather than a queue, so its semantics are adapted: it does not delay jobs.

Fact Detail
Install dotnet add package Naravel.Queue.Kafka
Targets .NET 10
Needs Naravel.Queue, which NuGet installs with it
Driver kafka, added with AddKafkaDriver
Delayed jobs Not supported: read the note under the example before you choose Kafka for jobs that wait

What you get

  • A topic per queue. Queue q is the topic netqueue-q, and jobs that ran out of attempts go to netqueue-q-failed.
  • A consumer group per queue. An idle consumer of one queue cannot stall another queue.
  • Offsets commit after the outcome. Nothing is committed until the job is acknowledged, released or failed.
  • An idle worker holds no thread. Polling awaits a short delay, so a stopped worker reacts to cancellation within about 20 ms.

Quick start

{
  "NaravelQueue": {
    "Default": "kafka",
    "Stores": {
      "kafka": { "Driver": "kafka", "BootstrapServers": "localhost:9092", "GroupId": "netqueue-workers" }
    }
  }
}
using Naravel.Queue.Extensions;
using Naravel.Queue.Kafka;

builder.Services.AddQueue(builder.Configuration).AddKafkaDriver(builder.Configuration);
builder.Services.AddQueueWorker();

BootstrapServers is required; GroupId defaults to netqueue-workers, and each queue uses its own consumer group named <GroupId>-<queue>. Kafka does not delay jobs: a dispatch with DelayFor or RunAt is rejected with an error, and a failed job is retried at once instead of after its backoff. Use the Redis, Database or RabbitMQ driver for jobs that wait. A retried job is produced again at the tail of the topic, so order is not preserved.

Package Adds
Naravel.Queue Jobs, retries with backoff, chaining, batching and the background worker
Naravel.Queue.Redis Redis driver: priority buckets and delayed jobs
Naravel.Queue.Database Any EF Core provider: delayed jobs and priorities
Naravel.Queue.RabbitMQ RabbitMQ driver: delayed jobs by per-message TTL and dead-lettering

Learn more

Part of Naravel: Laravel's names, .NET's type system. All Naravel packages share one version.

Product Compatible and additional computed target framework versions.
.NET 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
0.2.0 259 11/13/2026
0.1.1 106 11/2/2026
0.1.0 111 11/1/2026