transactional.id — Kafka Producer Configuration
The TransactionalId to use for transactional delivery. This enables reliability semantics which span multiple producer sessions since it allows the client to guarantee that transactions using the same TransactionalId have been completed prior to starting any new transactions
Description
The TransactionalId to use for transactional delivery. This enables reliability semantics which span multiple producer sessions since it allows the client to guarantee that transactions using the same TransactionalId have been completed prior to starting any new transactions. If no TransactionalId is provided, then the producer is limited to idempotent delivery. If a TransactionalId is configured, enable.idempotence is implied. By default the TransactionId is not configured, which means transactions cannot be used. Note that, by default, transactions require a cluster of at least three brokers which is the recommended setting for production; for development you can change this, by adjusting broker setting transaction.state.log.replication.factor.
Default Values by Kafka Version
| Component | Kafka version line | Documented default |
|---|---|---|
| Producer | 0.11.0 | null |
| Producer | 1.0 | null |
| Producer | 1.1 | null |
| Producer | 2.0 | null |
| Producer | 2.1 | null |
| Producer | 2.2 | null |
| Producer | 2.3 | null |
| Producer | 2.4 | null |
| Producer | 2.5 | null |
| Producer | 2.6 | null |
| Producer | 2.7 | null |
| Producer | 2.8 | null |
| Producer | 3.0 | null |
| Producer | 3.1 | null |
| Producer | 3.2 | null |
| Producer | 3.3 | null |
| Producer | 3.4 | null |
| Producer | 3.5 | null |
| Producer | 3.6 | null |
| Producer | 3.7 | null |
| Producer | 3.8 | null |
| Producer | 3.9 | null |
| Producer | 4.0 | null |
| Producer | 4.1 | null |
| Producer | 4.2 | null |
| Producer | 4.3 | null |
| Producer | 4.4 | null |
Tuning Recommendation
Workload-dependent proposals, not benchmarked defaults. Review the versioned Config Advisor before applying.
| Profile | Proposal | Rationale and tradeoff |
|---|---|---|
| producer / durability | <stable-logical-producer-id> | Identifies a transactional producer across sessions. Transactions can atomically commit Kafka records and consumed offsets when the application uses the transactional API. Tradeoff: An ID must be stable for its logical producer and unique among concurrent producers. Setting the property alone does not implement transactions or cover external side effects. Manual decision; not an executable preset. Reference · 2026-10-27 |
Related Configs
enable.idempotence · acks · transaction.timeout.ms