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
