Reputation: 11
Let's say I call poll()
just once with some timeout, instead of while(true) {...poll...}
timeout==0
and there are millions of records, what happens?Upvotes: 0
Views: 545
Reputation: 39955
According to the kafka-doc, by default max.poll.records
is 500
The maximum number of records returned in a single call to
poll()
.
Therefore, every time you call poll()
you can get upto 500
max.poll.records=500
from last committed offset
Upvotes: 1