I want to use rabbitmq to share domains events between microservices. Due to the fact that queues are round-robin, I need to define one queue per event source and event consumer.
cars-ms emits the
CarRepairedEvent and should be consumed by
trace-ms. I though about using a
fanout exchange to emit the event to
cars-ms_trace-ms. I could subscribe from each consumer to every queue related to it but I would prefer the consumer to subscribe to just one queue and receive all events from it:
- Is this approach reasonable?
- How can I achieve it?
Thank you all in advance!