Aspire.Hosting.RabbitMQ 13.5.3
RabbitMQ hosting integration
Use this integration to model, configure, and orchestrate a RabbitMQ resource in an Aspire solution.
Getting started
Add the integration
From your AppHost directory, add the Aspire.Hosting.RabbitMQ integration with the Aspire CLI:
aspire add Aspire.Hosting.RabbitMQ
Usage example
In the AppHost, add a RabbitMQ resource and reference it from another resource with either C# or TypeScript:
C#
var rmq = builder.AddRabbitMQ("rmq");
var myService = builder.AddProject<Projects.MyService>()
.WithReference(rmq);
TypeScript
const rmq = await builder.addRabbitMQ("rmq");
const myService = await builder.addNodeApp("myService", "../my-service", "server.js")
.withReference(rmq);
Connection Properties
When you reference a RabbitMQ resource using WithReference, the following connection properties are made available to the consuming project:
RabbitMQ server
The RabbitMQ server resource exposes the following connection properties:
| Property Name | Description |
|---|---|
Host |
The hostname or IP address of the RabbitMQ server |
Port |
The port number the RabbitMQ server is listening on |
Username |
The username for authentication |
Password |
The password for authentication |
Uri |
The connection URI, with the format amqp://{Username}:{Password}@{Host}:{Port} |
Aspire exposes each property as an environment variable named [RESOURCE]_[PROPERTY]. For instance, the Uri property of a resource called db1 becomes DB1_URI.
Additional documentation
- https://aspire.dev/integrations/gallery/
- https://aspire.dev/integrations/messaging/rabbitmq/rabbitmq-host/
Feedback & contributing
No packages depend on Aspire.Hosting.RabbitMQ.
.NET 8.0
- Aspire.Hosting (>= 13.5.3)
- AspNetCore.HealthChecks.Rabbitmq (>= 9.0.0)
- AspNetCore.HealthChecks.Uris (>= 9.0.0)
- Google.Protobuf (>= 3.34.1)
- Grpc.AspNetCore (>= 2.80.0)
- Grpc.Net.ClientFactory (>= 2.80.0)
- Grpc.Tools (>= 2.80.0)
- Humanizer.Core (>= 3.0.10)
- JsonPatch.Net (>= 5.0.2)
- KubernetesClient (>= 19.0.2)
- Microsoft.Extensions.Configuration.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Configuration.Binder (>= 10.0.11)
- Microsoft.Extensions.Configuration.EnvironmentVariables (>= 10.0.11)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.30)
- Microsoft.Extensions.FileSystemGlobbing (>= 10.0.11)
- Microsoft.Extensions.Hosting (>= 10.0.11)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Http (>= 10.0.11)
- Microsoft.Extensions.Logging (>= 10.0.11)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.11)
- Microsoft.Extensions.Options (>= 10.0.11)
- Microsoft.Extensions.Primitives (>= 10.0.11)
- ModelContextProtocol (>= 1.3.0)
- Newtonsoft.Json (>= 13.0.4)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.15.3)
- OpenTelemetry.Extensions.Hosting (>= 1.15.3)
- Polly.Core (>= 8.6.6)
- RabbitMQ.Client (>= 7.2.1)
- Semver (>= 3.0.0)
- StreamJsonRpc (>= 2.25.29)
- System.IO.Hashing (>= 10.0.8)
- System.Text.Json (>= 10.0.11)
- YamlDotNet (>= 16.3.0)
| Version | Downloads | Last updated |
|---|---|---|
| 13.5.3 | 7 | 2026-08-28 |
| 13.5.2 | 0 | 2026-08-21 |
| 13.5.1 | 0 | 2026-08-20 |
| 13.5.0 | 0 | 2026-08-18 |
| 13.4.6 | 0 | 2026-06-19 |
| 13.4.5 | 0 | 2026-06-17 |
| 13.4.4 | 0 | 2026-06-15 |
| 13.4.3 | 0 | 2026-06-08 |
| 13.4.2 | 0 | 2026-06-03 |
| 13.4.1 | 0 | 2026-06-03 |
| 13.4.0 | 0 | 2026-06-01 |
| 13.3.5 | 0 | 2026-05-21 |
| 13.3.4 | 0 | 2026-05-19 |
| 13.3.3 | 0 | 2026-05-15 |
| 13.3.2 | 0 | 2026-05-14 |
| 13.3.1 | 0 | 2026-05-12 |
| 13.3.0 | 0 | 2026-05-07 |
| 13.2.4 | 0 | 2026-04-24 |
| 13.2.3 | 0 | 2026-04-21 |
| 13.2.2 | 0 | 2026-04-08 |
| 13.2.1 | 0 | 2026-03-31 |
| 13.2.0 | 0 | 2026-03-23 |
| 13.1.3 | 0 | 2026-03-19 |
| 13.1.2 | 0 | 2026-02-26 |
| 13.1.1 | 0 | 2026-02-11 |
| 13.1.0 | 0 | 2025-12-17 |
| 13.0.2 | 0 | 2025-12-04 |
| 13.0.1 | 0 | 2025-11-26 |
| 13.0.0 | 0 | 2025-11-11 |
| 9.5.2 | 0 | 2025-10-23 |
| 9.5.1 | 0 | 2025-10-03 |
| 9.5.0 | 1 968 | 2025-09-30 |
| 9.4.2 | 0 | 2025-09-02 |
| 9.4.1 | 0 | 2025-08-12 |
| 9.4.0 | 1 | 2025-08-12 |
| 9.3.1 | 0 | 2025-06-10 |
| 9.3.0 | 0 | 2025-05-19 |
| 9.2.1 | 0 | 2025-04-24 |
| 9.2.0 | 0 | 2025-04-10 |
| 9.1.0 | 0 | 2025-02-25 |
| 9.0.0 | 0 | 2024-11-12 |
| 9.0.0-rc.1.24511.1 | 0 | 2024-10-15 |
| 8.2.2 | 0 | 2024-10-24 |
| 8.2.1 | 0 | 2024-09-26 |
| 8.2.0 | 0 | 2024-08-29 |
| 8.1.0 | 0 | 2024-07-23 |
| 8.0.2 | 0 | 2024-06-28 |
| 8.0.1 | 0 | 2024-05-21 |
| 8.0.0 | 0 | 2024-05-21 |
| 8.0.0-preview.7.24251.11 | 0 | 2024-05-07 |
| 8.0.0-preview.6.24214.1 | 0 | 2024-04-23 |
| 8.0.0-preview.5.24201.12 | 0 | 2024-04-09 |