Skip to content

KafkaConsumer API: internal cache and visibility of it #3897

Answered by edenhill
adamkotwasinski asked this question in Q&A
Discussion options

You must be logged in to vote

Messages are prefetched from the Kafka broker and put in an internal queue, all that consume() does is pop a message from that internal queue - so there is very little overhead in calling consume() and your approach seems fine to me.

https://github.com/edenhill/librdkafka/wiki/FAQ#how-are-partitions-fetched

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by adamkotwasinski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants