conduktor.io ↗

Kafka AllocateProducerIds Changelog — Protocol Version History

What is AllocateProducerIds?

Brokers request a batch of producer IDs from the KRaft controller, which maintains the global monotonically increasing counter. In KRaft mode, all producer ID allocation goes through this API, ensuring no two brokers hand out the same ID.

VersionKafkaChanges
AllocateProducerIdsRequest
v03.0
+ BrokerId int32
+ BrokerEpoch int64
~ Flexible encoding enabled FLEXIBLE
AllocateProducerIdsResponse
v03.0
+ ThrottleTimeMs int32
+ ErrorCode int16
+ ProducerIdStart int64
+ ProducerIdLen int32
~ Flexible encoding enabled FLEXIBLE