Acknowledgments (ack) dicono a RabbitMQ che un messaggio è stato elaborato con successo, in modo che possa essere rimosso dalla coda. Sono essenziali per la consegna affidabile — assicurando che i messaggi non vadano persi se un consumer fallisce.
Come funzionano i riconoscimenti
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)
