Reputation: 1124
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
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