I have few web applications publishing messages and a windows service that consumes the messages.Web applications publish different types of messages for the service to consume. There are about 15 message types and some messages have multiple consumers.Some consumers take about 10 minutes to process a message. When i use a single bus instance to handle all the message types withdifferent consumers, Message at the top of the queue starts consuming. But the next messages does not get consumed untill the first finishes.I can increase the concurrent consumer limit. But still consumers wait for the above consumers to finish.So what i am thinking is to have a single publisher bus instance per application, and multiple bus instances on windows service to consumedifferent types of messages with their own end point. Below is a sample code of the serviceIList<IServiceBus> serviceBusses = new List<IServiceBus>();// subscribers are read from configuration section.foreach (SubscriberElement subscriber in subscribers){serviceBusses.Add(MassTransit.ServiceBusFactory.New(sbc =>{sbc.UseRabbitMq();sbc.ReceiveFrom(subscriber.endpoint);sbc.Subscribe(s => s.Consumer<subscriber.consumertype>());sbc.SetConcurrentConsumerLimit(subscriber.concurrentlimit);}));}In most of the documents it is recomended to use a single bus instance per application.Is it ok to have multiple bus instances open on a windows service?--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To post to this group, send email to masstrans...@googlegroups.com.
To unsubscribe from this group, send email to masstransit-dis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/sMYjrAKcAmkJ.
For more options, visit https://groups.google.com/groups/opt_out.