I have been searching around, but am still in need of a clear explanation of how min_demand and max_demand work with Broadway.
In our use case, we have a low volume of messages coming in from rabbitMQ, but we need to process the messages as fast as possible when they come in. Let’s say we have 1 message per second coming in, and it takes 0.5 seconds to process a message.
What happens with the default values of min_demand (500) and max_demand (1000)?
The processor will request 500 initially, and get 1. Will it wait for 499 more messages before doing anything, or will it process that first message right away?
Basically I want to know - what values should I set to ensure that messages are not left waiting before being processed?