Starts in:
0 DAY
19 HRS
59 MIN
23 SEC
Starts in:
0 D
19 H
59 M
23 S
Open Closed

Azure service bus publishing event is not receiving always in Microservice architecture. #6482


User avatar
0
imranStem created

I have a Microservice architecture and all microservices has the azure service bus configuration.

I am publishing the event from Microservice 1 and receiving in Microservice 2 and again publishing the event from Microservice 2 and receiving in Microservice 3.

But When I publish the event from Microservice 1, its not aways receiving in Microservice 2. Sometimes its receiving and publishing to Microservice 3.

I have also checked the Service Bus in azure portal and there is no active message once I publish the event from Microservice 1 means the event is subscribe by other subscription but not by Microservice 2. I have written receiving handler in Microservice 2 so only Microservice 2 should subscribe the event from Microservice 1.

Is there any way to specify the subscription name while publishing the data so only that subscriber can receive the event?

Shared ETOs

Publish event from Microservice 1

Receiving handler and publishing event in Microservice 2

Receiving handler in Microservice 3

  • ABP Framework version: v7.4.2
  • UI Type: Angular
  • 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:

2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    But When I publish the event from Microservice 1, its not aways receiving in Microservice 2. Sometimes its receiving and publishing to Microservice 3.

    Both 2 and 3 will receive the same message

    3 will ignore the message , and 2 will handle the message.

    https://learn.microsoft.com/en-us/azure/service-bus-messaging/service-bus-messaging-overview#topics

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    Do you have outbox/inbox enabled?

    https://docs.abp.io/en/abp/latest/Distributed-Event-Bus#outbox-inbox-for-transactional-events

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06