How to implement a competing consumer solution?

后端 未结 1 1053
忘掉有多难
忘掉有多难 2021-02-14 01:31

As a exercise I\'m trying to find an example which implements competing consumer.

many producers - > MSMQueue <- competing consumers

So far I did not find a

1条回答
  •  无人共我
    2021-02-14 02:10

    With MassTransit and MSMQ you can achieve this using the Distributor component.

    Note that if you use MassTransit with RabbitMQ instead of MSMQ, you can implement a competing consumer scenario without using the Distributor, simply by setting the same queue name for all consumers. If you can choose between MSMQ and RabbitMQ, I'd go for RabbitMQ, as you get better management tools and SSL encryption, and it plays nicely with firewalls too.

    There is some discussion on this over on the MassTransit Google Groups forum.

    0 讨论(0)
提交回复
热议问题