conduktor.io ↗

Kafka BrokerRegistration Response Wire Format v2 — Binary Protocol Layout

What is BrokerRegistration?

A broker sends this on startup in KRaft mode to register with the active controller. The incarnation UUID changes on every restart, letting the controller distinguish a restart from a slow broker and prevent two instances of the same broker ID from both being active.

Related Errors

DUPLICATE_BROKER_REGISTRATION · INVALID_REGISTRATION

Wire Diagram

Response Header · flexible
message_size int32 · 4B
correlation_id int32 · 4B
tagged var
BrokerRegistrationResponse v2
ThrottleTimeMs int32 · 4B
ErrorCode int16 · 2B
BrokerEpoch int64 · 8B
tagged var

Schema & Example

Schema
{
  "ThrottleTimeMs": int32,
  "ErrorCode": int16,
  "BrokerEpoch": int64
}
Example
{
  "ThrottleTimeMs": 0,
  "ErrorCode": 0,
  "BrokerEpoch": 12
}