I have a requirement that messages should never be written to disk. The RabbitMQ documentation states the following:
both persistent and transient messages can be written to disk. Persistent messages will be written to disk as soon as they reach the queue, while transient messages will be written to disk only so that they can be evicted from memory while under memory pressure.
It's somewhat vague on what 'while under memory pressure' means. Is there a way to make sure transient messages will never be written to disk? If it comes to it, it's ok to lose the message if it cannot be delivered in this case.