Amazon sqs transport new run algorithm
Hi, we face the problem described here. I changed algorithm for consuming and running messages from queue in order not to consume messages if max amount of concurrent requests is reached.
This change is completely moving away from the receive algorithm, which is not going to be accepted. If you could find a less drastic way to achieve the outcome, I'll consider it, but based upon what I see currently, take a second look at how you can make it work like you're expecting without changing everything out.
I changed code a little bit.
Also, we need to check PrefetchCount because MaxNumberOfMessages is 10.
https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_ReceiveMessage.html
Again, not going to consider it with the whole window change out of the algorithm. Simplify or close.