Skip to content

kafka source topic/partition discovery in vector #21875

Answered by pront
canopenerda asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @canopenerda,

The Kafka consumer subscribes to the specified topics via the consumer.subscribe(&topics) call. This is done on startup. We basically delegate to rdkafka::StreamConsumer.

Re-subscription happens as part of the rebalancing process, so the consumer can subscribe to topics that are different from those originally specified in the configuration if the regex matches new or updated topics in the Kafka cluster.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by pront
Comment options

You must be logged in to vote
1 reply
@pront
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
source: kafka Anything `kafka` source related
2 participants