Jerin aiki a cikin RabbitMQ suna ajiye saƙi har sai ma'aikatan su bayar da su — suna aiki azaman buffers tsakanin masu saƙi da ma'aikatan. Fahimtar properties na jerin aiki (durability, acknowledgments, da sauransu) yana da mahimmanci don tabbatacce fadada saƙi.
Abin da jerin aiki ke yi
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)
Mahimman properties na jerin aiki
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
