conduktor.io ↗

KIP-480 — Sticky Partitioner

Accepted Kafka 2.4 Producer

Introduces a `StickyPartitioner` that sends multiple consecutive records without an explicit key to the same partition until the batch is sent, then rotates to a new partition. The default round-robin partitioner assigns each keyless record to a different partition, producing many small batches and higher latency even when `linger.ms=0`, because records for the same partition never accumulate.

Details

AuthorJustine Olshan
StatusAccepted
Kafka Version2.4
JIRAKAFKA-8601
WikiView on Apache Wiki
Created2019-06-24
Last Modified2019-08-15
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.