Hi,
I have created the ABP microservices template project and configured the Azure Service Bus to integrate the event bus. I removed the RabbitMq injection from modules and configuration from appsettings. When I run the projects, I got the error of RabbitMq as microservices use the RabbitMq configuration for the background jobs (AbpBackgroundJobsRabbitMqModule) so I decide to put the RabbitMq integration again in the project.
My appsettings.json file has the below configuration.
"RabbitMQ": {
"Connections": {
"Default": {
"HostName": "localhost"
}
},
"EventBus": {
"ClientName": "Project_AuthServer",
"ExchangeName": "Project"
}
},
"Azure": {
"ServiceBus": {
"Connections": {
"Default": {
"ConnectionString": "Endpoint=sb://mydomain.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey={{AccessKey}}"
}
}
},
"EventBus": {
"ConnectionName": "Default",
"SubscriberName": "Project_Subscriber",
"TopicName": "Projecty_AuthServer"
}
},
So now, I have two configurations for the event bus, the Azure service bus, and RabbitMq but how it will work to publish and subscribe to the events? I want to use the Azure service bus for the publishing and subscription event bus for the microservices but BackgroundJobs needs configuration of RabbitMq as well.
Do we need to define the EventBus settings for the RabbitMq configuration?
- ABP Framework version: v5.0.0
- UI type: Angular
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): yes
- Exception message and stack trace:
- Steps to reproduce the issue:"
1 Answer(s)
-
0
Hi,
You can use RabbitMQ only for background jobs, remove all
AbpEventBusRabbitMqModule
from your solution.then you can safely remove Rabbitmq's EventBus configuration.