Köer i RabbitMQ lagrar meddelanden tills konsumenter bearbetar dem — fungerar som buffrar mellan producenter och konsumenter. Att förstå köegenskaper (hållbarhet, bekräftelser, etc.) är viktigt för tillförlitligt meddelanden.
Vad köer gör
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)
Viktiga köegenskaper
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
