Topic Exchange vs Direct Exchange in RabbitMQ

前端 未结 5 1930
再見小時候
再見小時候 2021-01-30 06:53

We\'ve got an application which will be using RabbitMQ and have several different queues for passing messages between tiers.

Initially, I was planning to use multiple di

5条回答
  •  死守一世寂寞
    2021-01-30 07:17

    Direct exchange also supports multiple routes (https://www.rabbitmq.com/tutorials/amqp-concepts.html#exchange-direct) , so why don't you use something like this:

    ExchangeA (type: direct)
    -QueueA
    -RoutingA
    
    ExchangeB (type: direct)
    -QueueB
    -RoutingB
    
    ExchangeC (type: direct)
    -QueueC
    -RoutingC
    

提交回复
热议问题