Open Closed

How to use two exchanges in RabbitMQ? #8577


User avatar
0
327992883@qq.com created
  • ABP Framework version: v8.3.4
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:
  • `1、{ "RabbitMQ": { "Connections": { "Default": { "HostName": "123.123.123.123" }, "SecondConnection": { "HostName": "321.321.321.321" } }, "EventBus": { "ClientName": "MyClientName", "ExchangeName": "MyExchangeName", "ConnectionName": "SecondConnection" } } }

2、{ "RabbitMQ": { "Connections": { "Default": { "HostName": "123.123.123.123" }, "SecondConnection": { "HostName": "321.321.321.321" } }, "EventBus": [ { "ClientName": "SecondConnectionClientName", "ExchangeName": "SecondConnectionExchangeName", "ConnectionName": "SecondConnection" }, { "ClientName": "DefaultClientName", "ExchangeName": "DefaultExchangeName", "ConnectionName": "Default" } ] } }` I have consulted the relevant documents. Multiple Connections can be configured, but multiple EventBuses like the second point cannot be configured.

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I have consulted the relevant documents. Multiple Connections can be configured, but multiple EventBuses like the second point cannot be configured.

    Which document you have checked?

    I think you can override try to override the RabbitMqDistributedEventBus service to custom the logic.

    The built in service doesn't support this case.

    Thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 09, 2026, 11:56
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.