Open Closed

HandleEventAsync of IDistributedEventHandler not working with RabbitMQ Integration #372


User avatar
0
Yaduraj created

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)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    There have an example : https://github.com/abpframework/abp-samples/tree/master/RabbitMqEventBus, maybe can help you.

  • User Avatar
    0
    Yaduraj created

    Thanks @liangshiwei,

    We actually followed the same example and it works locally but when we deploy in IIS, the handler is not getting called.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11