Skip to content

Commit

Permalink
KAFKA-17882 improve the document about "default value" of tagged stru…
Browse files Browse the repository at this point in the history
…cture field (apache#17618)

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
  • Loading branch information
m1a2st authored Nov 3, 2024
1 parent 7b41eed commit f7f4e5b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions clients/src/main/resources/common/message/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ breaking compatibility.

Note that tagged fields can only be added to "flexible" message versions.

#### Default Value Handling for Tagged Fields

In Kafka's serialization mechanism, a tagged field may be omitted from the serialized message
if all its associated fields are equal to their default values, whether those defaults are explicit
or implicit. This behavior optimizes message size by avoiding the transmission of redundant data.

Flexible Versions
-----------------
Kafka serialization has been improved over time to be more flexible and
Expand Down

0 comments on commit f7f4e5b

Please sign in to comment.