Очереди в RabbitMQ хранят сообщения до тех пор, пока потребители их не обработают — действуя как буферы между производителями и потребителями. Понимание свойств очередей (надёжность, подтверждения и т.д.) важно для надёжной доставки сообщений.
Что делают очереди
A QUEUE holds messages until a consumer takes them:
→ messages wait in the queue (a buffer) → decouples producer speed from consumer speed
→ consumers receive messages (push or pull), process them, and ACKNOWLEDGE
→ roughly FIFO (first-in, first-out) order
→ the buffer between producers and consumers (absorbs load, enables async)
Ключевые свойства очередей
DURABLE → the queue survives a broker RESTART (the queue definition persists)
(+ PERSISTENT messages → messages also survive restart → durability)
EXCLUSIVE → used by only one connection; deleted when that connection closes
AUTO-DELETE → deleted when the last consumer disconnects
TTL → messages (or the queue) can expire after a time
MAX LENGTH → limit queue size (drop/overflow when full)
→ configure based on durability and lifecycle needs
