Process Flow - Consumer poll loop
Start Consumer
Poll for messages
Are messages received?
No→Wait and Poll again
Yes
Process each message
Commit offsets
Loop back to Poll
The consumer starts, polls messages in a loop, processes them if any, commits offsets, then polls again.