Process Flow - Consumer prefetch optimization
Start Consumer
Set Prefetch Count
Receive Messages up to Prefetch
Process Message
Acknowledge Message
Ready for Next Message
↩Back to Receive Messages
The consumer sets how many messages it can handle at once (prefetch). It receives that many messages, processes and acknowledges them, then gets more.