Open Closed

rabbitmq one message and multiple consumers #4238


User avatar
0
mostafa_ibrahem22@hotmail.com created

How can I make EntityCreatedEto "Pre-Defined Events" In Distributed Event Bus consume from multiple Applications?

more explain

abp use "direct exchange", how can I change some "Pre-Defined Events" to fanout exchange or how can I use one message and multiple consumers?

  • ABP Framework version: v5.1.3
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes

4 Answer(s)
  • User Avatar
    0
    mostafa_ibrahem22@hotmail.com created

    Dears,

    Kindly your support

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    ABP provided options that you can use it to change the exchange type:

    https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.EventBus.RabbitMQ/Volo/Abp/EventBus/RabbitMq/AbpRabbitMqEventBusOptions.cs#L15

  • User Avatar
    0
    mostafa_ibrahem22@hotmail.com created

    how can I change some "Pre-Defined Events" to fanout exchange and other Events direct?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Sorry, the Eventbus system supports the such case.

    I think you don't need to do this, ABP uses routing key to binding messages. you can define ETOs in a shared project and make sure every application references it.

    Every application should use the same exchange name

    You can see an example of this in the microservice template:

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38