Skip to content

Caching rd_kafka_topic_t #345

@ottomata

Description

@ottomata

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?)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions