ਪ੍ਰੀਫੈਚ (QoS) ਇੱਕ ਕੰਜ਼ਿਊਮਰ ਕਿੰਨੇ ਅਣ-ਸਵੀਕਾਰ ਕੀਤੇ ਸੁਨੇਹੇ ਇੱਕੋ ਸਮੇਂ ਰੱਖ ਸਕਦਾ ਹੈ ਇਸ ਨੂੰ ਸੀਮਿਤ ਕਰਦਾ ਹੈ — ਕੰਮ ਦੀ ਵਿਤਰਕੀ ਨੂੰ ਕਾਬੂ ਕਰਦੇ ਹੋਏ ਅਤੇ ਇੱਕ ਕੰਜ਼ਿਊਮਰ ਨੂੰ ਅਤਿਰਿਕਤ ਭਾਰ ਨਾਲ ਦਬਾਉਣ ਤੋਂ ਰੋਕਦਾ ਹੈ ਜਦੋਂ ਦੂਸਰੇ ਵਿਰਤ ਹਨ। ਇਹ ਨਿਰਪੱਖ, ਫਵਚਨ ਸੁਨੇਹਾ ਪ੍ਰਸੰਸਕਰਣ ਲਈ ਮਹੱਤਵਪੂਰਨ ਹੈ।
ਪ੍ਰੀਫੈਚ ਕੀ ਕਰਦਾ ਹੈ
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
