CommunityToolkit.Aspire.Hosting.RedPanda
13.5.0
Prefix Reserved
See the version list below for details.
dotnet add package CommunityToolkit.Aspire.Hosting.RedPanda --version 13.5.0
NuGet\Install-Package CommunityToolkit.Aspire.Hosting.RedPanda -Version 13.5.0
<PackageReference Include="CommunityToolkit.Aspire.Hosting.RedPanda" Version="13.5.0" />
<PackageVersion Include="CommunityToolkit.Aspire.Hosting.RedPanda" Version="13.5.0" />
<PackageReference Include="CommunityToolkit.Aspire.Hosting.RedPanda" />
paket add CommunityToolkit.Aspire.Hosting.RedPanda --version 13.5.0
#r "nuget: CommunityToolkit.Aspire.Hosting.RedPanda, 13.5.0"
#:package CommunityToolkit.Aspire.Hosting.RedPanda@13.5.0
#addin nuget:?package=CommunityToolkit.Aspire.Hosting.RedPanda&version=13.5.0
#tool nuget:?package=CommunityToolkit.Aspire.Hosting.RedPanda&version=13.5.0
CommunityToolkit.Aspire.Hosting.RedPanda
Overview
This Aspire hosting integration runs Redpanda in a container. Redpanda is a Kafka API compatible streaming platform, so the resource can be referenced by any Kafka client integration (for example the official Aspire.Confluent.Kafka client integration). The integration exposes the Kafka API, the Schema Registry, and the Admin API, and can optionally run the Redpanda Console web UI.
Usage
Example 1: Add a Redpanda broker
var builder = DistributedApplication.CreateBuilder(args);
var redpanda = builder.AddRedPanda("redpanda");
builder.AddProject<Projects.MyApp>("myapp")
.WithReference(redpanda)
.WaitFor(redpanda);
builder.Build().Run();
The connection string injected into the referencing resource is the Kafka bootstrap server address in the form host:port.
Example 2: Pin the Kafka host port
var redpanda = builder.AddRedPanda("redpanda", port: 9092);
Example 3: Tune the broker CPU and memory
var redpanda = builder.AddRedPanda("redpanda", options =>
{
options.CpuCount = 2; // Redpanda --smp, defaults to 1
options.Memory = "2G"; // Redpanda --memory, defaults to "1G"
});
Example 4: Persist data with a volume or bind mount
var redpanda = builder.AddRedPanda("redpanda")
.WithDataVolume();
// or
var redpanda = builder.AddRedPanda("redpanda")
.WithDataBindMount("./redpanda-data");
Example 5: Add the Redpanda Console web UI
var redpanda = builder.AddRedPanda("redpanda")
.WithConsole(console => console.WithHostPort(8080));
The console is configured automatically to connect to the broker's Kafka API, Schema Registry, and Admin API.
Example 6: Add the Kafka UI web UI
var redpanda = builder.AddRedPanda("redpanda")
.WithKafkaUI(kafkaUi => kafkaUi.WithHostPort(9000));
WithKafkaUI runs the same Kafka management UI (the kafbat/kafka-ui image) used by the official Aspire Kafka integration. It is wired automatically to the broker's Kafka API and Schema Registry, and can be used as an alternative to the Redpanda Console.
Endpoints
| Name | Description |
|---|---|
kafka |
Kafka API (host accessible) |
internal |
Kafka API (container-to-container) |
schemaregistry |
Schema Registry HTTP API |
admin |
Admin API HTTP (used for the health check) |
Upstream Image
This integration pins the redpandadata/redpanda image (from docker.redpanda.com) to a specific version tag (v26.1.10) rather than a floating tag, and the optional console uses redpandadata/console pinned to v3.7.4. Redpanda publishes immutable, fully-versioned tags (vYY.M.P); update the pinned tags to adopt newer releases. The optional Kafka UI uses kafbat/kafka-ui (from docker.io) pinned to v1.5.0.
| Product | Versions 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. |
-
net10.0
- Aspire.Hosting (>= 13.5.0)
- AspNetCore.HealthChecks.Kafka (>= 9.0.0)
- MessagePack (>= 2.5.302)
-
net8.0
- Aspire.Hosting (>= 13.5.0)
- AspNetCore.HealthChecks.Kafka (>= 9.0.0)
- MessagePack (>= 2.5.302)
-
net9.0
- Aspire.Hosting (>= 13.5.0)
- AspNetCore.HealthChecks.Kafka (>= 9.0.0)
- MessagePack (>= 2.5.302)
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 |
|---|---|---|
| 13.5.1-beta.748 | 37 | 9/7/2026 |
| 13.5.1-beta.744 | 44 | 9/7/2026 |
| 13.5.1-beta.743 | 54 | 9/7/2026 |
| 13.5.1-beta.736 | 45 | 9/1/2026 |
| 13.5.0 | 134 | 8/25/2026 |
| 13.5.0-beta.731 | 64 | 8/24/2026 |
| 13.5.0-beta.730 | 64 | 8/21/2026 |