KIP-1199 — Add max record count limit to FetchRequest
Discussion ConsumerProtocol
Proposes adding a MaxRecords field to FetchRequest and a corresponding fetch.max.message.count consumer config to limit the number of messages returned per fetch regardless of byte size. Kafka consumers can only bound fetch size in bytes; workloads with rate-limiting requirements based on message count (common in downstream processing pipelines) must over-fetch and discard records, wasting bandwidth and increasing offset management complexity.
Protocol Impact
Details
| Author | Corki Tse |
| Status | Discussion |
| JIRA | KAFKA-19554 |
| Wiki | View on Apache Wiki |
| Created | 2025-07-29 |
| Last Modified | 2025-07-29 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.