I have a kafka consumer which is consuming multiple topics (30+) & 6 partitions for each topic. I would like to learn how a single consumer consumes from multiple topics ( & partition) and how does it schedules which topic,partititon,offset to consume ?
I am facing consumer lag issues and wanted to learn more about how consumer consumes from multiple topics.
Will it start multiple threads ?
Will it schedule itself between partitions ?
What kind of scheduling it will use
My question is related to single consumer consuming from multiple topics. Let's say all the topics are loaded with 1M records each and a single consumer has to process those records. In what order will it read from topics ( i mean which topic/partition first, etc)
Any links to kafka internals will help ?
KafkaConsumer
? – Deadpool