By setting RETRY Count to 0/
Exactly one semantics : Kafka Offers Idempotent Producer Configurattion. We need to enable Idempote.
Replication Factor 3
Min In sync replica 2
The behavious of producer API will change. it will perform an initial handshake and ask for unique producer ID. Message Sequence No.