Skip to content

Document RabbitMQ auto activation feature#435

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/add-rabbitmq-auto-activation
Draft

Document RabbitMQ auto activation feature#435
Copilot wants to merge 2 commits intomainfrom
copilot/add-rabbitmq-auto-activation

Conversation

Copy link
Contributor

Copilot AI commented Feb 18, 2026

RabbitMQ client connections in Aspire 9.5 support auto activation to prevent startup deadlocks, but the feature was undocumented.

Changes

RabbitMQ Integration Documentation

  • Added "Auto activation" section in client integration area explaining:
    • Feature purpose: prevents startup deadlocks by establishing connections at startup vs. lazy initialization
    • Configuration: DisableAutoActivation = false to enable (disabled by default)
    • Use cases: early connectivity verification, fail-fast scenarios, pre-traffic connection requirements
    • Future: planned to be enabled by default in upcoming release

What's New in Aspire 9.5

  • Enhanced existing RabbitMQ auto activation section with:
    • Detailed explanation of lazy vs. eager connection initialization
    • Structured scenarios list
    • Cross-reference link to integration documentation

Example

var builder = WebApplication.CreateBuilder(args);

// Enable auto activation to establish connection during startup
builder.AddRabbitMQClient("messaging", o => o.DisableAutoActivation = false);

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/CommunityToolkit/Aspire
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node ./scripts/update-github-stats.js (http block)
  • https://api.github.com/repos/CommunityToolkit/Aspire/contributors
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build (http block)
  • https://api.github.com/repos/dotnet/aspire
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node ./scripts/update-github-stats.js (http block)
  • https://api.github.com/repos/dotnet/aspire-samples
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node ./scripts/update-github-stats.js (http block)
  • https://api.github.com/repos/dotnet/aspire-samples/contributors
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build (http block)
  • https://api.github.com/repos/dotnet/aspire/contributors
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build (http block)
  • https://api.github.com/repos/microsoft/aspire.dev
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node ./scripts/update-github-stats.js (http block)
  • https://api.github.com/repos/microsoft/aspire.dev/contributors
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build (http block)
  • https://api.github.com/repos/microsoft/dcp
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node ./scripts/update-github-stats.js (http block)
  • https://api.github.com/repos/microsoft/dcp/contributors
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build (http block)
  • learn.microsoft.com
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build (dns block)
  • telemetry.astro.build
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js build (dns block)
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js dev git log %D �� %b �� %aN �� %aE ���� --follow 0/x64/lib/node_modules/pnpm/dist/node-gyp-bin/git ference/cli/commbash REDACTED extended git log %D �� %b �� %aN �� %aE ���� extended ire.dev/src/frontend/node_module--recurse-submodules=no 3-1.mdx --no-quiet /node-gyp-bin/gi. git (dns block)
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node node /home/REDACTED/work/aspire.dev/aspire.dev/src/frontend/node_modules/.bin/../astro/astro.js dev git log %D �� %b �� %aN �� %aE ���� --follow (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>[What's New Analysis] Add RabbitMQ auto activation to rabbitmq-integration</issue_title>
<issue_description>## Summary

RabbitMQ client connections now support auto activation (introduced in 9.5) to prevent startup deadlocks. This is not documented in rabbitmq-integration.

What's Missing

From what's-new-in-aspire-95:

var builder = WebApplication.CreateBuilder(args);

// Auto activation is disabled by default for RabbitMQ
// Enable using DisableAutoActivation=false
builder.AddRabbitMQClient("messaging", o => o.DisableAutoActivation = false);

Key Points

  • Auto activation is disabled by default in 9.5
  • Planned to be enabled by default in a future release
  • Prevents startup deadlocks in certain scenarios

Suggested Content

Add to rabbitmq-integration doc, Client integration section:

  1. Auto activation - what it does, why it exists
  2. Configuration - DisableAutoActivation option
  3. When to enable - scenarios where it helps
  4. Default behavior changes - note future default change</issue_description>

<agent_instructions>please update this and the what's new too -
https://aspire.dev/integrations/messaging/rabbitmq/</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Copilot AI changed the title [WIP] Add RabbitMQ auto activation to rabbitmq-integration Document RabbitMQ auto activation feature Feb 18, 2026
Copilot AI requested a review from IEvangelist February 18, 2026 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[What's New Analysis] Add RabbitMQ auto activation to rabbitmq-integration

2 participants