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.


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.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 20, 2025, 18:00