YMJake.Aspire.Hosting.RocketMQ 1.0.7

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

YMJake.Aspire.Hosting.RocketMQ

AppHost extensions for running RocketMQ in .NET Aspire.

Resource Model

AddRocketMQCluster("rocketmq") creates:

  • rocketmq (logical root / connection-string source)
  • rocketmq-nameserver
  • rocketmq-broker
  • rocketmq-proxy
  • rocketmq-dashboard (optional)

The application-facing connection string points to Proxy.

Quick Start

using Aspire.Hosting.RocketMQ;
using Projects;

var builder = DistributedApplication.CreateBuilder(args);

var rocketmq = builder.AddRocketMQCluster("rocketmq")
    .WithDashboard()
    .AddTopic("AspireRocketMQSmoke");

builder.AddProject<Aspire_RocketMQ_AspNet_Demo>("api")
    .WaitForRocketMQCompletion(rocketmq)
    .WithReference(rocketmq);

builder.Build().Run();

Common Customization

var rocketmq = builder.AddRocketMQCluster("rocketmq")
    .WithBrokerConfig("../../rocketmq/conf/broker.conf", "/home/rocketmq/conf/broker.conf")
    .WithProxyConfig("../../rocketmq/conf/rmq-proxy.json", "/home/rocketmq/conf/rmq-proxy.json")
    .WithDataBindMount("../../.containers/rocketmq")
    .WithJvmArgs(nameServerArgs: "-Xms256m -Xmx512m", brokerArgs: "-Xms256m -Xmx512m")
    .AddTopic("AspireRocketMQSmoke");

Wait Guidance

  • Use WaitForRocketMQCompletion(rocketmq) for projects that depend on RocketMQ at startup.
  • Wait on runtime resources (proxy when present, otherwise nameserver).

Troubleshooting

  • If app startup keeps waiting, verify both WaitForRocketMQCompletion(...) and WithReference(rocketmq).
  • If proxy startup fails in topic bootstrap, verify NameServer/Broker health and bootstrap config.
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
1.0.7 101 5/21/2026
1.0.6 102 5/8/2026
1.0.5 108 4/23/2026
1.0.4 102 4/23/2026
1.0.2 124 4/5/2026
1.0.1 131 4/3/2026
1.0.0 109 4/2/2026