How to implement single-consumer-multi-queue model for rabbitMQ

前端 未结 2 1976
借酒劲吻你
借酒劲吻你 2021-01-02 01:21

\"enter

I have found this image is very similar to my bussiness model. I need to split

2条回答
  •  再見小時候
    2021-01-02 01:30

    1. You can add multiple workers to a queue
    2. There can be multiple queues bound to an exchange.

    In RabbitMQ, the producer always sends the message to an exchange. So, in your case, I hope only one exchange is enough. If you want to load balance at the consumer side, you have the above said two options.

    You can also read my article: https://techietweak.wordpress.com/2015/08/14/rabbitmq-a-cloud-based-message-oriented-middleware/

提交回复
热议问题