I am reading Persistence Configuration, and I have some questions.
I know that queues can be either durable or not, and messages are also divided into two categories: persistent or transient.
As the document says: Persistent messages will be written to disk as soon as they reach the queue.
So, here are my questions:
- If I send a message and the message was not distributed to any queues, will the message be persistent?
- If a queue is non-durable, will the message(persistent or transient, not being consumed) be deleted from disk when the queue is deleted?
- If a message is consumed, does rabbitmq delete this messages from physical storage?
Any ideas on how to test these conditions are appreciated.