Consumption issue

Hello everybody,

I have a question about Kafka message consumption.
If a topic has existing data, will it be consumed completely in a single operation, or could messages be missed in a single consumption cycle?
In my scenario, with a 10-second delay, consumption is happening between 4 to 6 iterations in a while loop. Does anyone encounter any issues like this?

Thanks,
Ashoka G