How to read specific number of messages per minute from apache kafka message queue

Viewed 105

How to read specific number of messages per minute from apache kafka message queue? For example, imagine that there are 100 messages in the queue, how can I get 5 messages to be read per minute. I don't know how to set "max.partition.fetch.bytes" as my byte size is not the same in every message.

Is there a way to dynamically set this to read 5 messages per minute?

0 Answers
Related