KIP-913 — Support decreasing send's block time without worrying about metadata's fetch
Discussion Producer
KIP-913 proposes adding a `KafkaProducer.getCluster(String topic, long maxBlockTimeMs)` public method that triggers an immediate metadata fetch and returns the resulting `Cluster` object, allowing applications to warm up the metadata cache before handling their first request. On cold start, the first `KafkaProducer.send()` incurs the full metadata-fetch latency because the local cache is empty; pre-fetching metadata during application initialization moves this cost out of the critical path.
Details
| Author | fu.jian |
| Status | Discussion |
| Wiki | View on Apache Wiki |
| Created | 2023-03-06 |
| Last Modified | 2023-03-07 |
Explore how this KIP affects the Kafka protocol in the Protocol Explorer, or see the full KIP database.