Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Limit the number of records Kafka consumer

Is it possible to limit the number of records we receive in a Kafka 0.9.0 consumer ?

like image 728
BlitzKrieg Avatar asked Nov 24 '25 13:11

BlitzKrieg


1 Answers

The configuration you are looking for is:

max.poll.records

This set The maximum number of records returned in a single call to poll().

like image 102
dbustosp Avatar answered Nov 28 '25 15:11

dbustosp