Consumer buffer size control #190
Replies: 4 comments
-
The consumer prefetch count is the feature you are looking for. This is exposed in By default there is no limit. You can set a default limit at the server level using the advanced config and the setting described here: https://rabbitmq.com/consumer-prefetch.html#default-limit |
Beta Was this translation helpful? Give feedback.
-
@Zerpet, First of all, thank you very much for such a fast reply. |
Beta Was this translation helpful? Give feedback.
-
It solved my issue! Thank you! |
Beta Was this translation helpful? Give feedback.
-
@MetalRex101 thanks for using RabbitMQ. In general, if a GitHub project has "Issues" and "Discussions", it's best to start a new discussion unless you are certain you have found a bug, or that the feature you request isn't already implemented. |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
Having: A queue with 1 million messages, that needs to be consumed.
Once consumer started, it will read all the available messages into a buffer, which will cause the following:
Describe the solution you'd like
It would be nice to have a setting for consumer buffer size (per consumer?).
Once buffer size is reached, RMQ client will not read new messages from RabbitMQ.
Describe alternatives you've considered
Alternative is to set fixed-sized buffer. Everything is better, than unlimited one.
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions