Process Flow - Consumer throughput optimization
Start Consumer
Fetch batch of messages
Process messages in batch
Commit offsets
Adjust batch size or concurrency
Repeat fetching next batch
Stop Consumer when done
The consumer fetches messages in batches, processes them, commits offsets, and adjusts batch size or concurrency to optimize throughput.