Open Closed

Event Bus using RabbitMqDistributedEventBus #7552


User avatar
0
viswajwalith created

ABP Framework version: v7.3.2

UI Type:MVC

Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..) / MongoDB

Tiered (for MVC) or Auth Server Separated (for Angular): yes

We are implementing Event Bus using RabbitMqDistributedEventBus in our application.

Local Event is working good for every request. but Distributed Event is not firing for every request. It is firing only 1 time for every 10-12 requests.


3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Could you share an example project to reproduce the problem with me? i will check it.

    shiwei.liang@volosoft.com

  • User Avatar
    0
    viswajwalith created

    In Sample it is working fine where as We have a requirement to implement RabbitMqDistributedEventBus and have both 'Publishing Event' and 'Distributed Event Handler' in the same service. when we try From swagger, request execution completing after executing the 'publishing event' without waiting for 'Distributed Event Handler' to be completed, later 'Distributed Event Handler' is processing. But when we try from web application, web request is not completing until 'Distributed Event Handler' complete the Process.

    if we implement 'Publishing Event' in one service and 'Distributed Event Handler' in another service, from web application also it is working like swagger and not waiting to complete 'Distributed Event Handler' process.

    Is there any way to implement both 'Publishing Event' and 'Distributed Event Handler' in same service and if we request from web application, request should not wait for complete 'Distributed Event Handler' process.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    The web requests will not wait for the Distributed Event Handler.

    The event will published after the transaction is completed; maybe that makes you think that the web request waits for it

    You can try to do a long time work in a Distributed Event Handler to check it.

Made with ❤️ on ABP v9.0.0-preview Updated on September 19, 2024, 10:13