Potvrzování (acks) říká RabbitMQ, že byla zpráva úspěšně zpracována, aby ji mohl odstranit z fronty. Jsou nezbytné pro spolehlivé doručení — zajišťují, aby se zprávy neztratily, pokud příjemce selže.
Jak funguje potvrzování
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)
