C#C
C#3y ago
M B V R K

❔ Is it Possible to Consume a Queue Message by Multiple Consumers ( RabbitMQ & MassTransit ) ?

Hi friends,
I'm working on a project using Microservices architecture, I have AuthService, ExpenseService and EventSourcererService, the last one is used as a separated service for Event-Sourcing for all other services.

When a nnew User created in the AuthService a message will be published to the AuthService-UserCreatedEventQueue Queue, inside the ExpenseService I have a consumer who configured to consume the messages in that queue, inside the EventSourcererService I have an other consumer who also configured to consume the published messasges in the AuthService-UserCreatedEventQueue Queue.

The issue:
When the user created only one consumer who get triggered and the other not.
For example when a user created the consumer in the ExpenseService do his job by consuming that message, but the EventSourcererService's consumer not triggered.

I knew later that using MassTransit and RabbitMQ only one Consumer who can consume the message in a queue.

So please from your experience how do I can consume the same message from the same queue by multiple consumers ?

And maassive thanks in advance <3
Was this page helpful?