RabbitMQ: basic acknowledgement

asked 2018-06-29 14:09:05 -0500

Hi - I'm experimenting with the RabbitMQ consumer. I'm taking records out of a queue and writing them to a database; I would like to make sure that the message stays on the queue until I get a write acknowledgment from the database, but it looks like retrieval immediately takes the message out of the queue. Is there a way to get the behavior that I'm looking for? I guess I would like to send a basic.ack on the channel only when I'm sure the message has been processed.

edit retag flag offensive close merge delete