Using prefetch to improve message consumption latency/throughput #1200
-
Hello, I'm looking at a scenario where I need to receive messages from a 3rd party publisher, and I'm looking for ways of minimizing/hiding latency. As the baseline, please consider this basic code:
My questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You misunderstand what prefetching means. Prefetch does not affect delivery order but re-queueing can. Prefetching simply controls the number of "in flight" deliveries that RabbitMQ would allow when manual acknowledgements are used. See the guide on Acknowledgements. |
Beta Was this translation helpful? Give feedback.
-
So the setting controls how many deliveries can be transferred on the channel, and dispatched to an |
Beta Was this translation helpful? Give feedback.
You misunderstand what prefetching means. Prefetch does not affect delivery order but re-queueing can.
Prefetching simply controls the number of "in flight" deliveries that RabbitMQ would allow when manual acknowledgements are used.
See the guide on Acknowledgements.