MassTransit icon indicating copy to clipboard operation
MassTransit copied to clipboard

Amazon sqs transport new run algorithm

Open viktorshevchenko210 opened this issue 3 years ago • 3 comments

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.

viktorshevchenko210 avatar Aug 09 '22 22:08 viktorshevchenko210

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.

phatboyg avatar Aug 09 '22 22:08 phatboyg

I changed code a little bit. Also, we need to check PrefetchCount because MaxNumberOfMessages is 10. image https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_ReceiveMessage.html

viktorshevchenko210 avatar Aug 10 '22 09:08 viktorshevchenko210

Again, not going to consider it with the whole window change out of the algorithm. Simplify or close.

phatboyg avatar Aug 10 '22 11:08 phatboyg