Locks and batch fetch messages with RabbitMq

前端 未结 3 1838
不思量自难忘°
不思量自难忘° 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:30

    You can set a channel/consumer level prefetch count to consume messages in batches. In order to re-submit messages, you should use the basic.reject AMQP method and those messages can be chosen to be requeued or forwarded to a dead letter queue. Multiple consumers trying to pull messages from the same queue is not an issue asthe AMQP basic.get method will be synchronized to handle concurrent consumers.

    https://groups.google.com/forum/#!topic/rabbitmq-users/hJ8f5du-GCA

提交回复
热议问题