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.
| Version | Kafka | Changes |
|---|---|---|
| AllocateProducerIdsRequest | ||
| v0 | 3.0 | + BrokerId int32+ BrokerEpoch int64~ Flexible encoding enabled FLEXIBLE |
| AllocateProducerIdsResponse | ||
| v0 | 3.0 | + ThrottleTimeMs int32+ ErrorCode int16+ ProducerIdStart int64+ ProducerIdLen int32~ Flexible encoding enabled FLEXIBLE |