conduktor.io ↗

KIP-1308 — Extend Header API for Common Value Types

Discussion ClientProducer

Extends the Header and Headers APIs with static factories and typed accessors for common value types (string with optional charset, byte, short, int, long, boolean and similar), keeping byte[] as the internal representation with no wire format change. Headers have no configurable serializers unlike record keys and values, so every team writes its own wrapper classes and byte constants to store and read the primitive types headers actually carry.

Details

AuthorAditya Kousik
StatusDiscussion
JIRAKAFKA-20387
WikiView on Apache Wiki
Created2026-03-31
Last Modified2026-05-27
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.