Skip to content
Exercise · Kafka producers · lesson 6 of 8

Exercise: a retry without duplicates

A producer sent a record, the broker stored it, but the reply got lost in the network. The producer does not know whether the record arrived and sends it again, and without protection the log gets a duplicate. Kafka's idempotent producer numbers its records, and the broker recognizes a retry by its number.