Introduction
At-least-once delivery ensures that every message sent to Kafka is processed at least one time. This means messages might be delivered more than once but never lost, which helps avoid missing important data.
When you want to make sure no messages are lost even if the consumer crashes.
When processing financial transactions where missing a message is worse than processing duplicates.
When collecting logs or metrics where completeness is more important than avoiding duplicates.
When your system can handle duplicate messages safely or has a way to detect duplicates.
When you want reliable message delivery but can accept occasional repeated processing.