Middle
What guarantees of message delivery do you know in Kafka?
sobes.tech AI
Answer from AI
In Apache Kafka, there are three main message delivery guarantees:
-
At most once — a message may be delivered 0 or 1 times. Loss of messages is possible, but duplicates will not occur.
-
At least once — a message will be delivered guaranteed, but duplicates may occur, for example, if the producer resends a message after a timeout.
-
Exactly once — a message is delivered exactly once without duplicates or loss. This guarantee is achieved using an idempotent producer and transactions in Kafka.
To configure these guarantees, it is important to consider producer parameters such as acks, retries, enable.idempotence, as well as consumer and broker settings.