Mohamed Ben Dhaou
Mohamed Ben Dhaou

Reputation: 1124

Multiple Hosts for single bus in MassTransit

Just realised that with V6 of MassTransit the support for multiple hosts in a single bus was removed. Is there maybe a different solution to implement it.

Our use case is to listen to the same queues on 2 different hosts. Consume messages and respond only using RespondAsync, my understanding is that it can resolve back to the originating default response queue automatically.

Thank You,

Upvotes: 0

Views: 2162

Answers (1)

Chris Patterson
Chris Patterson

Reputation: 33298

As of MassTransit v6, there is no way to configure multiple hosts for a single bus instance.

In your situation, you should create two bus instances, one for each host, and configure the same consumers on each instance.

Upvotes: 1

Related Questions