Integration / RabbitMQ Interview Questions
What is a queue in RabbitMQ?
A queue is the buffer inside RabbitMQ where messages actually live once they have been routed there, waiting to be delivered to a consumer.
Every queue is declared with a name and a set of properties that control its behavior:
- durable - survives a broker restart if true
- exclusive - usable only by the connection that declared it
- auto-delete - removed once the last consumer unsubscribes
- optional arguments such as message TTL, max length, or a dead-letter exchange
Producers never write to a queue directly; they always publish to an exchange, which then delivers the message into one or more queues.
More Related questions...