RabbitMQ same message to each consumer

前端 未结 2 1169
灰色年华
灰色年华 2021-01-02 22:14

I have implemented the example from the RabbitMQ website: RabbitMQ Example

I have expanded it to have an application with a button to send a message. Now I started t

2条回答
  •  佛祖请我去吃肉
    2021-01-02 22:49

    you can't it's controlled by the server check Round-robin dispatching section

    It decides which consumer turn is. i'm not sure if there is a set of algorithms you can pick from, but at the end server will control this (i think round robin algorithm is default)

    unless you want to use routing keys and exchanges

提交回复
热议问题