Prefetch (QoS) ఒక వినియోగదారు ఒకేసారి ఎన్ని అస్వీకృత సందేశాలు కలిగి ఉండగలరో నిపుణించుకుంటుంది — పని పంపిణీని నియంత్రించడం మరియు ఒక వినియోగదారు ఒక సారում ఎక్కువ సందేశాలను పొందకుండా తరాలను నిరోధించటం. ఇది న్యాయమైన, సమర్థవంతమైన సందేశ ప్రక్రియకరణకు ముఖ్యమైనది.
Prefetch ఏమి చేస్తుంది
PREFETCH (QoS - prefetch count) → limits the number of UNACKNOWLEDGED messages a consumer
can have at once:
→ without it → RabbitMQ may dispatch many messages to one consumer (it grabs a batch)
→ with prefetch=N → a consumer gets at most N unacked messages at a time (must ack to get more)
→ controls how messages are distributed and how much a consumer buffers
