diff --git a/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.AppHost/AspireWithRabbitMQ.AppHost.csproj b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.AppHost/AspireWithRabbitMQ.AppHost.csproj
new file mode 100644
index 00000000..fa2872c3
--- /dev/null
+++ b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.AppHost/AspireWithRabbitMQ.AppHost.csproj
@@ -0,0 +1,22 @@
+
+
+
+ Exe
+ net8.0
+ enable
+ enable
+ true
+ fcac3554-ac4d-4ee1-88a6-f808f54a59d8
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.AppHost/Program.cs b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.AppHost/Program.cs
new file mode 100644
index 00000000..01cb764c
--- /dev/null
+++ b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.AppHost/Program.cs
@@ -0,0 +1,11 @@
+var builder = DistributedApplication.CreateBuilder(args);
+
+var rabbitMQ = builder.AddRabbitMQ("messaging").WithManagementPlugin();
+
+builder.AddProject("sender")
+.WithReference(rabbitMQ);
+
+builder.AddProject("receiver")
+.WithReference(rabbitMQ);
+
+builder.Build().Run();
diff --git a/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.AppHost/Properties/launchSettings.json b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.AppHost/Properties/launchSettings.json
new file mode 100644
index 00000000..7d2b2fd8
--- /dev/null
+++ b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.AppHost/Properties/launchSettings.json
@@ -0,0 +1,29 @@
+{
+ "$schema": "https://json.schemastore.org/launchsettings.json",
+ "profiles": {
+ "https": {
+ "commandName": "Project",
+ "dotnetRunMessages": true,
+ "launchBrowser": true,
+ "applicationUrl": "https://localhost:17004;http://localhost:15150",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development",
+ "DOTNET_ENVIRONMENT": "Development",
+ "DOTNET_DASHBOARD_OTLP_ENDPOINT_URL": "https://localhost:21011",
+ "DOTNET_RESOURCE_SERVICE_ENDPOINT_URL": "https://localhost:22000"
+ }
+ },
+ "http": {
+ "commandName": "Project",
+ "dotnetRunMessages": true,
+ "launchBrowser": true,
+ "applicationUrl": "http://localhost:15150",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development",
+ "DOTNET_ENVIRONMENT": "Development",
+ "DOTNET_DASHBOARD_OTLP_ENDPOINT_URL": "http://localhost:19039",
+ "DOTNET_RESOURCE_SERVICE_ENDPOINT_URL": "http://localhost:20187"
+ }
+ }
+ }
+}
diff --git a/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.AppHost/appsettings.Development.json b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.AppHost/appsettings.Development.json
new file mode 100644
index 00000000..0c208ae9
--- /dev/null
+++ b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.AppHost/appsettings.Development.json
@@ -0,0 +1,8 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft.AspNetCore": "Warning"
+ }
+ }
+}
diff --git a/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.AppHost/appsettings.json b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.AppHost/appsettings.json
new file mode 100644
index 00000000..31c092aa
--- /dev/null
+++ b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.AppHost/appsettings.json
@@ -0,0 +1,9 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft.AspNetCore": "Warning",
+ "Aspire.Hosting.Dcp": "Warning"
+ }
+ }
+}
diff --git a/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Receiver/AspireWithRabbitMQ.Receiver.csproj b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Receiver/AspireWithRabbitMQ.Receiver.csproj
new file mode 100644
index 00000000..4026870d
--- /dev/null
+++ b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Receiver/AspireWithRabbitMQ.Receiver.csproj
@@ -0,0 +1,17 @@
+
+
+
+ net8.0
+ enable
+ enable
+
+
+
+
+
+
+
+
+
+
+
diff --git a/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Receiver/ProcessRabbitMQMessage.cs b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Receiver/ProcessRabbitMQMessage.cs
new file mode 100644
index 00000000..8bc6e276
--- /dev/null
+++ b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Receiver/ProcessRabbitMQMessage.cs
@@ -0,0 +1,53 @@
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Hosting;
+using Microsoft.Extensions.Logging;
+using RabbitMQ.Client.Events;
+using RabbitMQ.Client;
+using System.Text;
+
+public class ProcessRabbitMQMessage : BackgroundService{
+ private readonly ILogger _logger;
+ private readonly IServiceProvider _serviceProvider;
+ private IConnection? _messageConnection;
+ private IModel? _messageChannel;
+ private EventingBasicConsumer consumer;
+
+ public ProcessRabbitMQMessage(ILogger logger, IServiceProvider serviceProvider, IConnection? messageConnection)
+ {
+ _logger = logger;
+ _serviceProvider = serviceProvider;
+ }
+
+ protected override Task ExecuteAsync(CancellationToken stoppingToken)
+ {
+ string queueName = "testMessage";
+ _messageConnection = _serviceProvider.GetRequiredService();
+
+ _messageChannel = _messageConnection.CreateModel();
+ _messageChannel.QueueDeclare(queue: queueName,
+ durable: false,
+ exclusive: false,
+ autoDelete: false,
+ arguments: null);
+
+ consumer = new EventingBasicConsumer(_messageChannel);
+ consumer.Received += ProcessMessageAsync;
+
+ _messageChannel.BasicConsume(queue: queueName,
+ autoAck: true,
+ consumer: consumer);
+ return Task.CompletedTask;
+ }
+ public override async Task StopAsync(CancellationToken cancellationToken)
+ {
+ await base.StopAsync(cancellationToken);
+ consumer.Received -= ProcessMessageAsync;
+ _messageChannel?.Dispose();
+ }
+ private void ProcessMessageAsync(object? sender, BasicDeliverEventArgs args)
+ {
+ string message = Encoding.UTF8.GetString(args.Body.ToArray());
+ _logger.LogInformation("Message retrieved from queue at {now}. Message Text: {text}", DateTime.Now, message);
+ // var message = args.Body;
+ }
+}
\ No newline at end of file
diff --git a/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Receiver/Program.cs b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Receiver/Program.cs
new file mode 100644
index 00000000..d5b4f2a2
--- /dev/null
+++ b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Receiver/Program.cs
@@ -0,0 +1,12 @@
+using RabbitMQ.Client;
+using System.Text;
+
+var builder = WebApplication.CreateBuilder(args);
+builder.AddServiceDefaults();
+builder.AddRabbitMQClient("messaging");
+
+builder.Services.AddHostedService();
+
+var app = builder.Build();
+app.Run();
+
diff --git a/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Receiver/Properties/launchSettings.json b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Receiver/Properties/launchSettings.json
new file mode 100644
index 00000000..aa366f8e
--- /dev/null
+++ b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Receiver/Properties/launchSettings.json
@@ -0,0 +1,41 @@
+{
+ "$schema": "http://json.schemastore.org/launchsettings.json",
+ "iisSettings": {
+ "windowsAuthentication": false,
+ "anonymousAuthentication": true,
+ "iisExpress": {
+ "applicationUrl": "http://localhost:4257",
+ "sslPort": 44326
+ }
+ },
+ "profiles": {
+ "http": {
+ "commandName": "Project",
+ "dotnetRunMessages": true,
+ "launchBrowser": true,
+ "launchUrl": "weatherforecast",
+ "applicationUrl": "http://localhost:5102",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ },
+ "https": {
+ "commandName": "Project",
+ "dotnetRunMessages": true,
+ "launchBrowser": true,
+ "launchUrl": "weatherforecast",
+ "applicationUrl": "https://localhost:7217;http://localhost:5102",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ },
+ "IIS Express": {
+ "commandName": "IISExpress",
+ "launchBrowser": true,
+ "launchUrl": "weatherforecast",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ }
+ }
+}
diff --git a/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Receiver/appsettings.Development.json b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Receiver/appsettings.Development.json
new file mode 100644
index 00000000..0c208ae9
--- /dev/null
+++ b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Receiver/appsettings.Development.json
@@ -0,0 +1,8 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft.AspNetCore": "Warning"
+ }
+ }
+}
diff --git a/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Receiver/appsettings.json b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Receiver/appsettings.json
new file mode 100644
index 00000000..10f68b8c
--- /dev/null
+++ b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Receiver/appsettings.json
@@ -0,0 +1,9 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft.AspNetCore": "Warning"
+ }
+ },
+ "AllowedHosts": "*"
+}
diff --git a/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Sender/AspireWithRabbitMQ.Sender.csproj b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Sender/AspireWithRabbitMQ.Sender.csproj
new file mode 100644
index 00000000..6b9e7b09
--- /dev/null
+++ b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Sender/AspireWithRabbitMQ.Sender.csproj
@@ -0,0 +1,18 @@
+
+
+
+ net8.0
+ enable
+ enable
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Sender/Program.cs b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Sender/Program.cs
new file mode 100644
index 00000000..15bb6d0d
--- /dev/null
+++ b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Sender/Program.cs
@@ -0,0 +1,41 @@
+using RabbitMQ.Client;
+using System.Text;
+
+var builder = WebApplication.CreateBuilder(args);
+builder.AddServiceDefaults();
+builder.AddRabbitMQClient("messaging");
+
+builder.Services.AddProblemDetails();
+builder.Services.AddEndpointsApiExplorer();
+builder.Services.AddSwaggerGen();
+
+var app = builder.Build();
+app.UseSwagger();
+app.UseSwaggerUI();
+app.UseHttpsRedirection();
+
+app.MapPost("sendmessage",async Task(IConnection connection, string messageToSend)=>{
+
+ var channel = connection.CreateModel();
+ channel.QueueDeclare(
+ queue:"testMessage",
+ durable:false,
+ exclusive:false,
+ autoDelete:false,
+ arguments:null
+ );
+ var body = Encoding.UTF8.GetBytes(messageToSend);
+
+ channel.BasicPublish(
+ exchange:string.Empty,
+ routingKey:"testMessage",
+ mandatory:false,
+ basicProperties:null,
+ body:body
+ );
+ return Results.Ok(new {});
+
+});
+app.Run();
+
+
diff --git a/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Sender/Properties/launchSettings.json b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Sender/Properties/launchSettings.json
new file mode 100644
index 00000000..17df0858
--- /dev/null
+++ b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Sender/Properties/launchSettings.json
@@ -0,0 +1,41 @@
+{
+ "$schema": "http://json.schemastore.org/launchsettings.json",
+ "iisSettings": {
+ "windowsAuthentication": false,
+ "anonymousAuthentication": true,
+ "iisExpress": {
+ "applicationUrl": "http://localhost:45524",
+ "sslPort": 44320
+ }
+ },
+ "profiles": {
+ "http": {
+ "commandName": "Project",
+ "dotnetRunMessages": true,
+ "launchBrowser": true,
+ "launchUrl": "swagger",
+ "applicationUrl": "http://localhost:5095",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ },
+ "https": {
+ "commandName": "Project",
+ "dotnetRunMessages": true,
+ "launchBrowser": true,
+ "launchUrl": "swagger",
+ "applicationUrl": "https://localhost:7138;http://localhost:5095",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ },
+ "IIS Express": {
+ "commandName": "IISExpress",
+ "launchBrowser": true,
+ "launchUrl": "swagger",
+ "environmentVariables": {
+ "ASPNETCORE_ENVIRONMENT": "Development"
+ }
+ }
+ }
+}
diff --git a/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Sender/appsettings.Development.json b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Sender/appsettings.Development.json
new file mode 100644
index 00000000..0c208ae9
--- /dev/null
+++ b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Sender/appsettings.Development.json
@@ -0,0 +1,8 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft.AspNetCore": "Warning"
+ }
+ }
+}
diff --git a/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Sender/appsettings.json b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Sender/appsettings.json
new file mode 100644
index 00000000..10f68b8c
--- /dev/null
+++ b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.Sender/appsettings.json
@@ -0,0 +1,9 @@
+{
+ "Logging": {
+ "LogLevel": {
+ "Default": "Information",
+ "Microsoft.AspNetCore": "Warning"
+ }
+ },
+ "AllowedHosts": "*"
+}
diff --git a/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.ServiceDefaults/AspireWithRabbitMQ.ServiceDefaults.csproj b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.ServiceDefaults/AspireWithRabbitMQ.ServiceDefaults.csproj
new file mode 100644
index 00000000..34c4b0bc
--- /dev/null
+++ b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.ServiceDefaults/AspireWithRabbitMQ.ServiceDefaults.csproj
@@ -0,0 +1,22 @@
+
+
+
+ net8.0
+ enable
+ enable
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.ServiceDefaults/Extensions.cs b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.ServiceDefaults/Extensions.cs
new file mode 100644
index 00000000..ce94dc2c
--- /dev/null
+++ b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.ServiceDefaults/Extensions.cs
@@ -0,0 +1,111 @@
+using Microsoft.AspNetCore.Builder;
+using Microsoft.AspNetCore.Diagnostics.HealthChecks;
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Diagnostics.HealthChecks;
+using Microsoft.Extensions.Logging;
+using OpenTelemetry;
+using OpenTelemetry.Metrics;
+using OpenTelemetry.Trace;
+
+namespace Microsoft.Extensions.Hosting;
+
+// Adds common .NET Aspire services: service discovery, resilience, health checks, and OpenTelemetry.
+// This project should be referenced by each service project in your solution.
+// To learn more about using this project, see https://aka.ms/dotnet/aspire/service-defaults
+public static class Extensions
+{
+ public static IHostApplicationBuilder AddServiceDefaults(this IHostApplicationBuilder builder)
+ {
+ builder.ConfigureOpenTelemetry();
+
+ builder.AddDefaultHealthChecks();
+
+ builder.Services.AddServiceDiscovery();
+
+ builder.Services.ConfigureHttpClientDefaults(http =>
+ {
+ // Turn on resilience by default
+ http.AddStandardResilienceHandler();
+
+ // Turn on service discovery by default
+ http.AddServiceDiscovery();
+ });
+
+ return builder;
+ }
+
+ public static IHostApplicationBuilder ConfigureOpenTelemetry(this IHostApplicationBuilder builder)
+ {
+ builder.Logging.AddOpenTelemetry(logging =>
+ {
+ logging.IncludeFormattedMessage = true;
+ logging.IncludeScopes = true;
+ });
+
+ builder.Services.AddOpenTelemetry()
+ .WithMetrics(metrics =>
+ {
+ metrics.AddAspNetCoreInstrumentation()
+ .AddHttpClientInstrumentation()
+ .AddRuntimeInstrumentation();
+ })
+ .WithTracing(tracing =>
+ {
+ tracing.AddAspNetCoreInstrumentation()
+ // Uncomment the following line to enable gRPC instrumentation (requires the OpenTelemetry.Instrumentation.GrpcNetClient package)
+ //.AddGrpcClientInstrumentation()
+ .AddHttpClientInstrumentation();
+ });
+
+ builder.AddOpenTelemetryExporters();
+
+ return builder;
+ }
+
+ private static IHostApplicationBuilder AddOpenTelemetryExporters(this IHostApplicationBuilder builder)
+ {
+ var useOtlpExporter = !string.IsNullOrWhiteSpace(builder.Configuration["OTEL_EXPORTER_OTLP_ENDPOINT"]);
+
+ if (useOtlpExporter)
+ {
+ builder.Services.AddOpenTelemetry().UseOtlpExporter();
+ }
+
+ // Uncomment the following lines to enable the Azure Monitor exporter (requires the Azure.Monitor.OpenTelemetry.AspNetCore package)
+ //if (!string.IsNullOrEmpty(builder.Configuration["APPLICATIONINSIGHTS_CONNECTION_STRING"]))
+ //{
+ // builder.Services.AddOpenTelemetry()
+ // .UseAzureMonitor();
+ //}
+
+ return builder;
+ }
+
+ public static IHostApplicationBuilder AddDefaultHealthChecks(this IHostApplicationBuilder builder)
+ {
+ builder.Services.AddHealthChecks()
+ // Add a default liveness check to ensure app is responsive
+ .AddCheck("self", () => HealthCheckResult.Healthy(), ["live"]);
+
+ return builder;
+ }
+
+ public static WebApplication MapDefaultEndpoints(this WebApplication app)
+ {
+ // Adding health checks endpoints to applications in non-development environments has security implications.
+ // See https://aka.ms/dotnet/aspire/healthchecks for details before enabling these endpoints in non-development environments.
+ if (app.Environment.IsDevelopment())
+ {
+ // All health checks must pass for app to be considered ready to accept traffic after starting
+ app.MapHealthChecks("/health");
+
+ // Only health checks tagged with the "live" tag must pass for app to be considered alive
+ app.MapHealthChecks("/alive", new HealthCheckOptions
+ {
+ Predicate = r => r.Tags.Contains("live")
+ });
+ }
+
+ return app;
+ }
+}
diff --git a/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.sln b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.sln
new file mode 100644
index 00000000..855678ba
--- /dev/null
+++ b/samples/AspireWithRabbitMQ/AspireWithRabbitMQ.sln
@@ -0,0 +1,30 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.8.0.0
+MinimumVisualStudioVersion = 17.8.0.0
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AspireWithRabbitMQ.AppHost", "AspireWithRabbitMQ.AppHost\AspireWithRabbitMQ.AppHost.csproj", "{F5F612CE-B9D7-473A-A6C3-DF2A2E9605D3}"
+EndProject
+Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AspireWithRabbitMQ.ServiceDefaults", "AspireWithRabbitMQ.ServiceDefaults\AspireWithRabbitMQ.ServiceDefaults.csproj", "{FC792BC0-10E3-4E44-A764-434DAB93E6CD}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {F5F612CE-B9D7-473A-A6C3-DF2A2E9605D3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F5F612CE-B9D7-473A-A6C3-DF2A2E9605D3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F5F612CE-B9D7-473A-A6C3-DF2A2E9605D3}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F5F612CE-B9D7-473A-A6C3-DF2A2E9605D3}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FC792BC0-10E3-4E44-A764-434DAB93E6CD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FC792BC0-10E3-4E44-A764-434DAB93E6CD}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FC792BC0-10E3-4E44-A764-434DAB93E6CD}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FC792BC0-10E3-4E44-A764-434DAB93E6CD}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {E6200481-E1BB-42F9-A778-71A00E78D4F2}
+ EndGlobalSection
+EndGlobal
diff --git a/samples/AspireWithRabbitMQ/README.md b/samples/AspireWithRabbitMQ/README.md
new file mode 100644
index 00000000..13b09a0f
--- /dev/null
+++ b/samples/AspireWithRabbitMQ/README.md
@@ -0,0 +1,34 @@
+---
+languages:
+- csharp
+products:
+- dotnet
+- dotnet-aspire
+page_type: sample
+name: ".NET Aspire and RabbitMQ Integration sample"
+urlFragment: "aspire-rabbitmq"
+description: "This is a sample project using the .NET Aspire RabbitMQ client as a message broker"
+---
+
+# .NET Aspire with RabbitMQ
+
+
+
+This sample demonstrates an approach for integrating a RabbitMQ into a .NET Aspire application.
+
+The project consists of two services:
+
+- **AspireWithRabbitMQ.Sender**: This is a minimal api project for sending events/messages to RabbitMQ.
+- **AspireWithRabbitMQ.Receiver**: Minimal api project for retrieving events/messages from RabbitMQ.
+
+## Pre-requisites
+
+- [.NET 8 SDK](https://dotnet.microsoft.com/download/dotnet/8.0)
+- [Docker Desktop](https://www.docker.com/products/docker-desktop/)
+- **Optional** [Visual Studio 2022 17.10](https://visualstudio.microsoft.com/vs/preview/)
+
+## Running the app
+
+If using Visual Studio, open the solution file `AspireWithRabbitMQ.sln` and launch/debug the `AspireWithRabbitMQ.AppHost` project.
+
+If using the .NET CLI, run `dotnet run` from the `AspireWithRabbitMQ.AppHost` directory or `dotnet run --project .\AspireWithRabbitMQ.AppHost\` from the root directory.
diff --git a/samples/AspireWithRabbitMQ/images/rabbitmq-managemement.PNG b/samples/AspireWithRabbitMQ/images/rabbitmq-managemement.PNG
new file mode 100644
index 00000000..05a22aa9
Binary files /dev/null and b/samples/AspireWithRabbitMQ/images/rabbitmq-managemement.PNG differ
diff --git a/samples/AspireWithRabbitMQ/images/sender-endpoints.PNG b/samples/AspireWithRabbitMQ/images/sender-endpoints.PNG
new file mode 100644
index 00000000..3d43c4c2
Binary files /dev/null and b/samples/AspireWithRabbitMQ/images/sender-endpoints.PNG differ
diff --git a/samples/AspireWithRabbitMQ/images/sender-receiever-testing.PNG b/samples/AspireWithRabbitMQ/images/sender-receiever-testing.PNG
new file mode 100644
index 00000000..53e21df5
Binary files /dev/null and b/samples/AspireWithRabbitMQ/images/sender-receiever-testing.PNG differ
diff --git a/samples/AspireWithRabbitMQ/images/swagger-ui.PNG b/samples/AspireWithRabbitMQ/images/swagger-ui.PNG
new file mode 100644
index 00000000..b43431bc
Binary files /dev/null and b/samples/AspireWithRabbitMQ/images/swagger-ui.PNG differ