-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
Description
It would be handy if librdkafka had the ability to cache initialized rd_kafka_topic_t topics so that (lazy) users wouldn't have to implement this themselves. That is, when producing to multiple topics, each unique rd_kafka_topic_t could be stored librdkafka.
Something like
rd_kafka_topic_t *rkt = rd_kafka_topic_get(rk, "topic_name");This could either initialize the topic and store it (if topic conf is also given?), or it could return something indicating the topic doesn't exist. I suppose a rd_kafka_topic_store() function of some kind would also be needed.
(This doesn't already exist, does it?)