producer ID
A number the broker assigns to an idempotent or transactional producer so it can recognise that producer's batches.
In more detail
Together with the sequence number, the producer ID lets the broker spot a duplicate batch. A new producer instance gets a new ID, which is why idempotence does not deduplicate across separate producers.
Related terms
- idempotent producer — A producer mode in which the broker detects and discards duplicate batches caused by retries, so each record is written once per partition.
- sequence number — An increasing number attached to each message so the receiver can detect gaps, reorder messages and say where to resume.
- transactional.id — A stable name you give a transactional producer so the broker can recognise it across restarts.
Taught in
- The Payment That Was Charged Twice — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Idempotent Producers And Retries — Apache Kafka & Event Streaming