Acknowledgments (acks) RabbitMQ ला सांगतात की एक संदेश यशस्वीरित्या प्रक्रिया झाला आहे, जेणेकरून तो queue मधून काढून टाकता येतो. ते विश्वसनीय delivery साठी अत्यावश्यक आहेत — जर consumer अपयश होतील तर संदेश हरवत नाहीत याची खातरी करतात.
Acknowledgments कसे काम करतात
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)
