Skip to content

Commit 5231e11

Browse files
author
gabrieldutra
committed
KAFKA-12570: Document compact arrays in flexible versions
Generated-by: OpenAI Codex
1 parent ac0d7e2 commit 5231e11

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/design/protocol.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ For interoperability with 0.9.0.x clients, the first packet received by the serv
136136

137137
The protocol is built out of the following primitive types.
138138

139+
Message versions marked as flexible use the compact encoding for variable-length fields. In particular, arrays use `COMPACT_ARRAY` rather than `ARRAY`; strings and byte arrays similarly use their corresponding `COMPACT_*` types. Compact encodings store their length as an unsigned variable-length integer instead of a fixed-width integer. Flexible versions also include a tagged-fields section at the end of every request and response component.
140+
139141
{{< include-html file="/static/{version}/generated/protocol_types.html" >}}
140142

141143
### Notes on reading the request format grammars

0 commit comments

Comments
 (0)