I am using RabbitMQ with php response \ stomp. I have two lines: one is todo, the other is done. The consumer reads "todo", does its job, passes the ACK message, and then publishes it to the "done" queue.
Is there a way to ensure that I only consume N messages from "todo" (and separately), and then leave? The main reason for this is that we do not want users to work for a long time, and we want to restart them after N messages.
source share