Once we have our exchange created, we have to create a queue that can be bound to it. Queues have names so that they can be easily referenced. We can choose to provide our own queue names (which we will) or pass an empty string and have the name be generated automatically for us.
Queues have properties that we can pass to them, or use the defaults for. The properties are as follows:
- Queue name
- A durable queue will survive a service restart
- Exclusive will be used by only one connection and the queue will be deleted when that connection closes
- Auto-delete any queue that has had at least one consumer when the last consumer unsubscribes
- Arguments are optional and are server-specific name value pairs
You can think of queues as ordered collections of messages, which are consumed in First In First Out (FIFO) order. There is an exception for priority and...