Locks and batch fetch messages with RabbitMq

前端 未结 3 1839
不思量自难忘°
不思量自难忘° 2021-02-08 14:41

I\'m trying to use RabbitMq in a more unconventional way (though at this point i can pick any other message queue implementation if needed). Instead of leaving Rabbit push messa

3条回答
  •  粉色の甜心
    2021-02-08 15:35

    Have your consumers pull from just one queue. They will be guaranteed not to share messages (Rabbit will round-robin the messages among the currently-connected consumers) and it's heavily optimized for that exact usage pattern.

    It's ready-to-use, out of the box. In the RabbitMQ docs it's called the Work Queue model. One queue, multiple consumers, with none of them sharing anything. It sounds like what you need.

提交回复
热议问题