Patvirtinimai (acks) pasako RabbitMQ, kad žinutė buvo sėkmingai apdorota, todėl ją galima pašalinti iš eilės. Jie yra būtini patikimam pristatyti — užtikrinant, kad žinutės nebūtų prarastos, jei yra kažkoks gedimas.
Kaip veikia patvirtinimai
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)
