conduktor.io ↗

KIP-527 — Add VoidSerde to Serdes

Accepted Kafka 2.5 Streams

KIP-527 adds a `Serdes.Void()` serde to the Kafka Streams API that serializes/deserializes `Void` (always null), providing a type-safe representation of topics where keys or values are always null. Using `BytesSerde` or `ByteArraySerde` for null-keyed topics produces a misleading `KStream<Bytes, V>` type that requires defensive null checks throughout the topology.

Details

AuthorNikolay Izhikov
StatusAccepted
Kafka Version2.5
JIRAKAFKA-8455
WikiView on Apache Wiki
Created2019-09-19
Last Modified2019-10-19
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.