Queues in RabbitMQ halten Meldungen, bis Consumer diese verarbeiten — fungieren als Puffer zwischen Producern und Consumern. Das Verständnis von Queue-Eigenschaften (Dauerhaftigkeit, Bestätigungen, usw.) ist wichtig für zuverlässiges Messaging.
Was Warteschlangen tun
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)
Wichtige Queue-Eigenschaften
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
