Kafka wire protocol packet diagrams
One page per Kafka API, generated from the message schemas on apache/kafka branch 4.0. Each page encodes a minimal example of the request and the response at the highest valid version and draws it as an RFC-style byte grid, an expanded object tree and the raw schema. 84 APIs.
Records
Consumer groups
Share groups
Transactions
Topics and partitions
3 Metadata
(v13)
19 CreateTopics
(v7)
20 DeleteTopics
(v6)
21 DeleteRecords
(v2)
23 OffsetForLeaderEpoch
(v4)
34 AlterReplicaLogDirs
(v2)
35 DescribeLogDirs
(v4)
37 CreatePartitions
(v3)
43 ElectLeaders
(v2)
45 AlterPartitionReassignments
(v0)
46 ListPartitionReassignments
(v0)
56 AlterPartition
(v3)
73 AssignReplicasToDirs
(v0)
75 DescribeTopicPartitions
(v0)
Security and ACLs
Configuration and quotas
Cluster and KRaft
18 ApiVersions
(v4)
52 Vote
(v2)
53 BeginQuorumEpoch
(v1)
54 EndQuorumEpoch
(v1)
55 DescribeQuorum
(v2)
57 UpdateFeatures
(v2)
58 Envelope
(v0)
59 FetchSnapshot
(v1)
60 DescribeCluster
(v2)
62 BrokerRegistration
(v4)
63 BrokerHeartbeat
(v1)
64 UnregisterBroker
(v0)
70 ControllerRegistration
(v0)
71 GetTelemetrySubscriptions
(v0)
72 PushTelemetry
(v0)
74 ListClientMetricsResources
(v0)
80 AddRaftVoter
(v0)
81 RemoveRaftVoter
(v0)
82 UpdateRaftVoter
(v0)