I have two microservices apliations say App1 and App2 hosted on an IIS server. I am using IDistributedEventBus (https://docs.abp.io/en/abp/latest/Distributed-Event-Bus) to Publish event that contains only a GUID property. App1 successfully publishes the event and the message getting added to Queue in RabbitMQ. But the HandleEventAsync method of IDistributedEventHandler in App2 is not being called even if the App2 is in always running mode. Sometimes, HandleEventAsync gets called when we explicitly call an API of App2.
What can be the issue? Am I missing something?
- ABP Framework version: v3.0.4
- UI type: Angular / MVC
- Tiered (MVC) or Identity Server Seperated (Angular): yes
- Exception message and stack trace: None
- Steps to reproduce the issue: None
2 Answer(s)
-
0
Hi,
There have an example : https://github.com/abpframework/abp-samples/tree/master/RabbitMqEventBus, maybe can help you.
-
0
Thanks @liangshiwei,
We actually followed the same example and it works locally but when we deploy in IIS, the handler is not getting called.