B
B
bodrich2019-09-20 08:11:58
RabbitMQ
bodrich, 2019-09-20 08:11:58

What parameters should be used to create an exchange and a queue so that messages are not deleted from the queue after they have been read?

What parameters should be used to create an exchange and a queue so that messages are not deleted from the queue after they have been read? (and the client confirmed that he had read the messages). Currently created like this:
https://pastebin.com/FbLU3g1C

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2019-09-20
@bodrich

With none. RabbitMQ hides the message for the duration of the consumer anyway and will delete the message after ack. If you send nack, then the message will return to the queue and it will stand up tightly, if you send reject, then the queue will delete the message, but it will be possible to send it to the dead letter queue.
If you need a history (commit) log, then RabbitMQ is not the right tool and you need to use Kafka

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question