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
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

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

    Dears,

    Kindly your support

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    mostafa_ibrahem22@hotmail.com created

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

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    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:

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 07:12
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.