transactional.id
A stable name you give a transactional producer so the broker can recognise it across restarts.
In more detail
When a producer starts with a transactional ID already in use, the broker finishes or aborts the old instance's open transaction and fences the old instance out. Each active producer needs a unique ID.
Example
KafkaProducer(transactional_id='m04l03-txn-1')Related terms
- Kafka transaction — A group of writes, possibly across several partitions and topics, that Kafka makes visible all together on commit or not at all on abort.
- zombie fencing — Blocking an old instance of a transactional producer from writing once a newer instance with the same transactional ID has started.
- producer ID — A number the broker assigns to an idempotent or transactional producer so it can recognise that producer's batches.
Taught in
- The Error Storm That Fixes Itself — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Two Copies Of One Service — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Allowed To Read, Refused Anyway — Confluent Apache Kafka Certifications (CCDAK and CCAAK) Exam Prep
- Transactions And Exactly Once Semantics — Apache Kafka & Event Streaming