Potrditve (acks) RabbitMQ povedo, da je bilo sporočilo uspešno obdelano, tako da ga je mogoče odstraniti iz vrste. So bistvene za zanesljivo dostavo — zagotavljajo, da sporočila niso izgubljena, če potrošnik odpove.
Kako delujejo potrditve
When a consumer receives and processes a message, it ACKNOWLEDGES it:
→ ACK → "I've processed this message" → RabbitMQ removes it from the queue
→ if a consumer DIES before acking (crash, disconnect) → RabbitMQ REQUEUES the message
→ redelivered to another consumer (NOT lost)
→ acks ensure messages are processed reliably (not lost if a consumer fails)
