I need to consume the message from Kafka topic.
For example, my topic had one thousand records. I need to consume the message count basis. Count as parameter. i.e., if I give count 100 then consume 100 messages only, next loop consumes next 100 records need to consume.
how to do using kafkajs.