RabbitMQ: basic acknowledgement

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

oneextrafact gravatar image

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

Comments

I would also love to see this important feature. However, in the meantime this may be worked around by requeuing messages upon using the pipeline's error management, I guess.

Philipp gravatar imagePhilipp ( 2018-09-18 23:56:08 -0600 )edit