Process Flow - Fair dispatch with prefetch
Consumer connects to queue
Set prefetch count = N
Receive up to N messages
Process message
Send ack to server
Server sends next message
↩Back to Receive
The consumer sets a limit (prefetch count) on how many messages it can handle at once. The server sends only that many messages before waiting for acknowledgments, ensuring fair load distribution.