conduktor.io โ†—

KIP-31 โ€” Move to relative offsets in compressed message sets

Accepted Kafka 1.0 BrokerProtocol

Changes the message format in compressed message sets to use relative (inner) offsets instead of absolute offsets, so the broker can append the message set without decompressing and re-compressing it just to assign offsets. The broker was forced to decompress every compressed batch, assign per-message absolute offsets, and recompress โ€” a significant CPU cost on the hot write path.

Protocol Impact

Produce ยท Fetch

Details

AuthorJiangjie Qin
StatusAccepted
Kafka Version1.0
JIRAKAFKA-2511
WikiView on Apache Wiki
Created2015-09-03
Last Modified2017-04-06
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.