conduktor.io ↗

KIP-636 — Make RPC error codes and messages tagged fields

Discussion Protocol

Converts the `ErrorCode` and `ErrorMessage` fields in all RPC messages using flexible (tagged-field-capable) versions to tagged fields, so they occupy zero bytes when the error code is `NONE`. On happy-path responses, `ErrorCode=0` and `ErrorMessage=null` are present in every response but carry no information; making them tagged fields saves 2-3 bytes per response sub-entity, which compounds for batched responses.

Details

AuthorTom Bentley
StatusDiscussion
WikiView on Apache Wiki
Created2020-07-01
Last Modified2020-07-02
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.